@afeefa/vue-app 0.0.50 → 0.0.51
Sign up to get free protection for your applications and to get access to all the features.
- package/.afeefa/package/release/version.txt +1 -1
- package/package.json +1 -1
- package/src/api-resources/ApiActions.js +1 -0
- package/src/components/AContextMenu.vue +2 -2
- package/src/components/AContextMenuItem.vue +9 -2
- package/src-admin/components/App.vue +7 -25
- package/src-admin/components/pages/CreatePage.vue +1 -1
- package/src-admin/components/pages/DetailPage.vue +1 -1
- package/src-admin/components/pages/EditPage.vue +1 -1
- package/src-admin/components/routes/DetailRoute.vue +1 -1
- package/src-admin/components/routes/EditRoute.vue +1 -1
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.51
|
package/package.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
>
|
7
7
|
<slot name="activator">
|
8
8
|
<a-icon class="contextButton">
|
9
|
-
$dotsHorizontalIcon
|
9
|
+
{{ triggerIcon || '$dotsHorizontalIcon' }}
|
10
10
|
</a-icon>
|
11
11
|
</slot>
|
12
12
|
</div>
|
@@ -31,7 +31,7 @@ import { Positions, PositionConfig } from '../services/PositionService'
|
|
31
31
|
import { randomCssClass } from '../utils/random'
|
32
32
|
|
33
33
|
@Component({
|
34
|
-
props: ['contentHeight', 'repositionWatchKey']
|
34
|
+
props: ['contentHeight', 'repositionWatchKey', 'triggerIcon']
|
35
35
|
})
|
36
36
|
export default class AContextMenu extends Mixins(UsesPositionServiceMixin) {
|
37
37
|
CONTEXT_MENU = true
|
@@ -10,7 +10,9 @@
|
|
10
10
|
<script>
|
11
11
|
import { Component, Vue } from 'vue-property-decorator'
|
12
12
|
|
13
|
-
@Component
|
13
|
+
@Component({
|
14
|
+
props: ['to']
|
15
|
+
})
|
14
16
|
export default class AContextMenuItem extends Vue {
|
15
17
|
get contextMenu () {
|
16
18
|
let parent = this.$parent
|
@@ -25,7 +27,12 @@ export default class AContextMenuItem extends Vue {
|
|
25
27
|
|
26
28
|
click () {
|
27
29
|
this.contextMenu.close()
|
28
|
-
this
|
30
|
+
if (this.to) {
|
31
|
+
this.$router.push(this.to)
|
32
|
+
.catch(() => null) // prevent duplicated navigation
|
33
|
+
} else {
|
34
|
+
this.$emit('click')
|
35
|
+
}
|
29
36
|
}
|
30
37
|
}
|
31
38
|
</script>
|
@@ -59,32 +59,14 @@
|
|
59
59
|
</div>
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<
|
63
|
-
<
|
64
|
-
|
65
|
-
class="contextButton"
|
66
|
-
v-bind="attrs"
|
67
|
-
v-on="on"
|
68
|
-
>
|
69
|
-
$dotsVerticalIcon
|
70
|
-
</v-icon>
|
71
|
-
</template>
|
72
|
-
|
73
|
-
<v-list
|
74
|
-
class="pa-0"
|
62
|
+
<a-context-menu triggerIcon="$dotsVerticalIcon">
|
63
|
+
<a-context-menu-item
|
64
|
+
:to="{name: 'settings', params: {accountId: account.id}}"
|
75
65
|
>
|
76
|
-
<v-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
</v-icon>
|
81
|
-
</v-list-item-icon>
|
82
|
-
<v-list-item-title>
|
83
|
-
Einstellungen
|
84
|
-
</v-list-item-title>
|
85
|
-
</v-list-item>
|
86
|
-
</v-list>
|
87
|
-
</v-menu>
|
66
|
+
<v-icon>$pencilIcon</v-icon>
|
67
|
+
Einstellungen
|
68
|
+
</a-context-menu-item>
|
69
|
+
</a-context-menu>
|
88
70
|
</div>
|
89
71
|
</v-container>
|
90
72
|
</v-container>
|
@@ -69,7 +69,7 @@ export default class CreatePage extends Mixins(EditPageMixin) {
|
|
69
69
|
}
|
70
70
|
|
71
71
|
get modelUpateAction () {
|
72
|
-
return this.editConfig.createAction || this.ModelClass.getAction('
|
72
|
+
return this.editConfig.createAction || this.ModelClass.getAction('save')
|
73
73
|
}
|
74
74
|
|
75
75
|
get _icon () {
|
@@ -110,7 +110,7 @@ export default class DetailPage extends Vue {
|
|
110
110
|
}
|
111
111
|
|
112
112
|
get _deleteAction () {
|
113
|
-
return this.detailConfig.removeAction || this.ModelClass.getAction('
|
113
|
+
return this.detailConfig.removeAction || this.ModelClass.getAction('save')
|
114
114
|
}
|
115
115
|
|
116
116
|
async remove () {
|
@@ -99,7 +99,7 @@ export default class EditPage extends Mixins(EditPageMixin) {
|
|
99
99
|
}
|
100
100
|
|
101
101
|
get modelUpateAction () {
|
102
|
-
return this.editConfig.updateAction || this.ModelClass.getAction('
|
102
|
+
return this.editConfig.updateAction || this.ModelClass.getAction('save')
|
103
103
|
}
|
104
104
|
|
105
105
|
get _getAction () {
|