Skip to content

Commit d791068

Browse files
committed
Display publish state in progress page sidebar
1 parent 08f8c96 commit d791068

File tree

1 file changed

+9
-2
lines changed
  • client/components/repository/Workflow/Sidebar

1 file changed

+9
-2
lines changed

client/components/repository/Workflow/Sidebar/Header.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
:type-label="activityConfig.label"
1010
:color="activityConfig.color" />
1111
</div>
12+
<publishing
13+
v-if="isAdmin || isRepositoryAdmin"
14+
:activity="activityConfig"
15+
:outline-activities="outlineActivities"
16+
hide-publish />
1217
<div class="mt-8">
1318
<v-tooltip open-delay="500" bottom>
1419
<template #activator="{ on }">
@@ -57,6 +62,7 @@ import fecha from 'fecha';
5762
import isBefore from 'date-fns/isBefore';
5863
import LabelChip from '@/components/repository/common/LabelChip';
5964
import { mapGetters } from 'vuex';
65+
import Publishing from '@/components/repository/common/Sidebar/Publishing';
6066
6167
export default {
6268
inject: ['$schemaService'],
@@ -70,7 +76,8 @@ export default {
7076
updatedAt: { type: String, default: null }
7177
},
7278
computed: {
73-
...mapGetters('repository', ['structure']),
79+
...mapGetters(['isAdmin']),
80+
...mapGetters('repository', ['structure', 'isRepositoryAdmin']),
7481
activityConfig: vm => vm.$schemaService.getLevel(vm.type),
7582
isUpdated() {
7683
if (!this.updatedAt) return false;
@@ -86,6 +93,6 @@ export default {
8693
return fecha.parse(fecha.format(date, format), format);
8794
}
8895
},
89-
components: { ActivityCard, LabelChip }
96+
components: { ActivityCard, LabelChip, Publishing }
9097
};
9198
</script>

0 commit comments

Comments
 (0)