Skip to content

Commit f8731e4

Browse files
committed
feat(ui): project tasks chart
1 parent 92af700 commit f8731e4

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

web/src/components/DashboardMenu.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export default {
4747
props: {
4848
projectId: Number,
4949
projectType: String,
50+
canUpdateProject: Boolean,
5051
},
5152
5253
data() {

web/src/views/project/Stats.vue

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
2-
<div v-if="items">
2+
<div>
33
<v-toolbar flat>
44
<v-app-bar-nav-icon @click="showDrawer()"></v-app-bar-nav-icon>
55
<v-toolbar-title>{{ $t('dashboard') }}</v-toolbar-title>
@@ -16,19 +16,34 @@
1616
</div>
1717
</template>
1818
<script>
19-
import ItemListPageBase from '@/components/ItemListPageBase';
2019
import DashboardMenu from '@/components/DashboardMenu.vue';
2120
import {
2221
TEMPLATE_TYPE_ACTION_TITLES,
2322
TEMPLATE_TYPE_ICONS,
2423
TEMPLATE_TYPE_TITLES,
24+
USER_PERMISSIONS,
2525
} from '@/lib/constants';
2626
import TaskStats from '@/components/TaskStats.vue';
27+
import PermissionsCheck from '@/components/PermissionsCheck';
2728
2829
export default {
30+
computed: {
31+
USER_PERMISSIONS() {
32+
return USER_PERMISSIONS;
33+
},
34+
},
35+
2936
components: { TaskStats, DashboardMenu },
3037
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+
},
3247
3348
data() {
3449
return {
@@ -46,7 +61,7 @@ export default {
4661
text: 'All users',
4762
value: null,
4863
}],
49-
user: null,
64+
5065
TEMPLATE_TYPE_ICONS,
5166
TEMPLATE_TYPE_TITLES,
5267
TEMPLATE_TYPE_ACTION_TITLES,
@@ -56,9 +71,6 @@ export default {
5671
},
5772
5873
methods: {
59-
getItemsUrl() {
60-
return `/api/project/${this.projectId}/events/last`;
61-
},
6274
},
6375
};
6476
</script>

0 commit comments

Comments
 (0)