From 429483f5b90fcffdc695f84a8dd7e00bbbd24bff Mon Sep 17 00:00:00 2001
From: Helmi Akermi <70575401+hakermi@users.noreply.github.com>
Date: Tue, 19 Nov 2024 10:30:14 +0100
Subject: [PATCH] feat: Implement edit note publication schedule - EXO-75389 -
Meeds-io/MIPs#161 (#1214)
Implement edit note publication schedule
---
.../conf/wiki/feature-flags-configuration.xml | 2 --
.../webui/workspace/UINotesHeadTemplate.gtmpl | 1 -
.../components/NotePublicationDrawer.vue | 1 +
.../schedule-option/NoteScheduleOption.vue | 18 ++++++-----
.../vue-app/notes-rich-editor/js/Utils.js | 30 -------------------
5 files changed, 11 insertions(+), 41 deletions(-)
diff --git a/notes-webapp/src/main/webapp/WEB-INF/conf/wiki/feature-flags-configuration.xml b/notes-webapp/src/main/webapp/WEB-INF/conf/wiki/feature-flags-configuration.xml
index 5202dd8bad..d7f415e4a3 100644
--- a/notes-webapp/src/main/webapp/WEB-INF/conf/wiki/feature-flags-configuration.xml
+++ b/notes-webapp/src/main/webapp/WEB-INF/conf/wiki/feature-flags-configuration.xml
@@ -28,8 +28,6 @@
NoteFeatureProperties
Note Feature enablement flag
-
diff --git a/notes-webapp/src/main/webapp/groovy/webui/workspace/UINotesHeadTemplate.gtmpl b/notes-webapp/src/main/webapp/groovy/webui/workspace/UINotesHeadTemplate.gtmpl
index e9aacd6a2d..180a6e0e5a 100644
--- a/notes-webapp/src/main/webapp/groovy/webui/workspace/UINotesHeadTemplate.gtmpl
+++ b/notes-webapp/src/main/webapp/groovy/webui/workspace/UINotesHeadTemplate.gtmpl
@@ -6,6 +6,5 @@
%>
diff --git a/notes-webapp/src/main/webapp/vue-app/notes-publication/components/NotePublicationDrawer.vue b/notes-webapp/src/main/webapp/vue-app/notes-publication/components/NotePublicationDrawer.vue
index db4019ab4c..107757e5f6 100644
--- a/notes-webapp/src/main/webapp/vue-app/notes-publication/components/NotePublicationDrawer.vue
+++ b/notes-webapp/src/main/webapp/vue-app/notes-publication/components/NotePublicationDrawer.vue
@@ -157,6 +157,7 @@
:publish="publicationSettings?.publish"
:is-publishing="isPublishing"
:edit-mode="editMode"
+ :from-external-page="noteObject?.fromExternalPage"
:saved-schedule-settings="{
scheduled: currentScheduleSettings?.schedule,
postDate: currentScheduleSettings?.postDate,
diff --git a/notes-webapp/src/main/webapp/vue-app/notes-publication/components/schedule-option/NoteScheduleOption.vue b/notes-webapp/src/main/webapp/vue-app/notes-publication/components/schedule-option/NoteScheduleOption.vue
index 139a8803be..8fb196c765 100644
--- a/notes-webapp/src/main/webapp/vue-app/notes-publication/components/schedule-option/NoteScheduleOption.vue
+++ b/notes-webapp/src/main/webapp/vue-app/notes-publication/components/schedule-option/NoteScheduleOption.vue
@@ -203,10 +203,10 @@