File tree Expand file tree Collapse file tree
contentcuration/contentcuration/frontend/channelEdit/pages/StagingTreePage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ const GETTERS = {
2020 global : {
2121 isCompactViewMode : jest . fn ( ) ,
2222 appendChannelName : ( ) => ( ) => jest . fn ( ) ,
23+ hasFeatureEnabled : ( ) => ( ) => false ,
2324 } ,
2425 currentChannel : {
2526 rootId : ( ) => ROOT_ID ,
Original file line number Diff line number Diff line change 227227 </VBtn >
228228
229229 <VBtn
230- v-if =" false "
230+ v-if =" showDraftMode "
231231 color =" primary"
232232 data-test =" display-publish-draft-dialog-btn"
233233 @click =" displayPublishDraftDialog = true"
365365 import MainNavigationDrawer from ' shared/views/MainNavigationDrawer' ;
366366 import OfflineText from ' shared/views/OfflineText' ;
367367 import { Channel } from ' shared/data/resources' ;
368+ import { FeatureFlagKeys } from ' shared/constants' ;
368369
369370 export default {
370371 name: ' StagingTreePage' ,
409410 };
410411 },
411412 computed: {
412- ... mapGetters ([' isCompactViewMode' ]),
413+ ... mapGetters ([' isCompactViewMode' , ' hasFeatureEnabled ' ]),
413414 ... mapGetters (' currentChannel' , [
414415 ' currentChannel' ,
415416 ' rootId' ,
492493 fileSizeDiff () {
493494 return this .fileSizeStaged - this .fileSizeLive ;
494495 },
496+ showDraftMode () {
497+ return this .hasFeatureEnabled (FeatureFlagKeys .draft_channels );
498+ },
495499 },
496500 watch: {
497501 nodeId (newNodeId ) {
648652 this .isPublishingDraft = true ;
649653
650654 this .publishStagingChannel ()
651- .then (publishDraftchange => Channel .waitForPublishingDraft (publishDraftchange))
652655 .then (() => {
653656 this .isPublishingDraft = false ;
654657 this .showSnackbar ({
You can’t perform that action at this time.
0 commit comments