From ece9e9cd2eaae1489d2814652ab6b1eac48fdca7 Mon Sep 17 00:00:00 2001 From: taoerman Date: Fri, 7 Nov 2025 08:34:25 -0800 Subject: [PATCH 1/2] Show resubmit channel to community library CTA after channel publish --- .../modals/ResubmitChannelModal.vue | 162 ++++++++++++++++++ .../sidePanels/PublishSidePanel.vue | 4 +- .../views/TreeView/TreeViewBase.vue | 47 +++++ .../strings/communityChannelsStrings.js | 24 +++ 4 files changed, 236 insertions(+), 1 deletion(-) create mode 100644 contentcuration/contentcuration/frontend/channelEdit/components/modals/ResubmitChannelModal.vue diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/modals/ResubmitChannelModal.vue b/contentcuration/contentcuration/frontend/channelEdit/components/modals/ResubmitChannelModal.vue new file mode 100644 index 0000000000..703de8c2d5 --- /dev/null +++ b/contentcuration/contentcuration/frontend/channelEdit/components/modals/ResubmitChannelModal.vue @@ -0,0 +1,162 @@ + + + + + + + diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/sidePanels/PublishSidePanel.vue b/contentcuration/contentcuration/frontend/channelEdit/components/sidePanels/PublishSidePanel.vue index 9c0027442d..8d9fac95c4 100644 --- a/contentcuration/contentcuration/frontend/channelEdit/components/sidePanels/PublishSidePanel.vue +++ b/contentcuration/contentcuration/frontend/channelEdit/components/sidePanels/PublishSidePanel.vue @@ -328,6 +328,8 @@ }); } + emit('published', { channelId: currentChannel.value.id }); + await Channel.publish(currentChannel.value.id, version_notes.value); emit('close'); @@ -402,7 +404,7 @@ }; }, - emits: ['close'], + emits: ['close', 'published'], }; diff --git a/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/TreeViewBase.vue b/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/TreeViewBase.vue index 6ca82f5d2d..527c532317 100644 --- a/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/TreeViewBase.vue +++ b/contentcuration/contentcuration/frontend/channelEdit/views/TreeView/TreeViewBase.vue @@ -235,12 +235,20 @@ +