File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ export default {
47
47
props: {
48
48
projectId: Number ,
49
49
projectType: String ,
50
+ canUpdateProject: Boolean ,
50
51
},
51
52
52
53
data () {
Original file line number Diff line number Diff line change 1
1
<template xmlns:v-slot =" http :// www.w3.org/1999/XSL/Transform">
2
- < div v - if = " items" >
2
+ <div >
3
3
< v - toolbar flat >
4
4
< v - app - bar - nav - icon @click = " showDrawer()"></v-app-bar-nav-icon >
5
5
<v-toolbar-title >{{ $t('dashboard') }}</v-toolbar-title >
16
16
</div >
17
17
</template >
18
18
<script >
19
- import ItemListPageBase from ' @/components/ItemListPageBase' ;
20
19
import DashboardMenu from ' @/components/DashboardMenu.vue' ;
21
20
import {
22
21
TEMPLATE_TYPE_ACTION_TITLES ,
23
22
TEMPLATE_TYPE_ICONS ,
24
23
TEMPLATE_TYPE_TITLES ,
24
+ USER_PERMISSIONS ,
25
25
} from ' @/lib/constants' ;
26
26
import TaskStats from ' @/components/TaskStats.vue' ;
27
+ import PermissionsCheck from ' @/components/PermissionsCheck' ;
27
28
28
29
export default {
30
+ computed: {
31
+ USER_PERMISSIONS () {
32
+ return USER_PERMISSIONS ;
33
+ },
34
+ },
35
+
29
36
components: { TaskStats, DashboardMenu },
30
37
31
- mixins: [ItemListPageBase],
38
+ mixins: [PermissionsCheck],
39
+
40
+ props: {
41
+ projectId: Number ,
42
+ projectType: String ,
43
+ userId: Number ,
44
+ userRole: String ,
45
+ user: Object ,
46
+ },
32
47
33
48
data () {
34
49
return {
@@ -46,7 +61,7 @@ export default {
46
61
text: ' All users' ,
47
62
value: null ,
48
63
}],
49
- user : null ,
64
+
50
65
TEMPLATE_TYPE_ICONS ,
51
66
TEMPLATE_TYPE_TITLES ,
52
67
TEMPLATE_TYPE_ACTION_TITLES ,
@@ -56,9 +71,6 @@ export default {
56
71
},
57
72
58
73
methods: {
59
- getItemsUrl () {
60
- return ` /api/project/${ this .projectId } /events/last` ;
61
- },
62
74
},
63
75
};
64
76
</script >
You can’t perform that action at this time.
0 commit comments