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';
5762import isBefore from ' date-fns/isBefore' ;
5863import LabelChip from ' @/components/repository/common/LabelChip' ;
5964import { mapGetters } from ' vuex' ;
65+ import Publishing from ' @/components/repository/common/Sidebar/Publishing' ;
6066
6167export 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