-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement create article from existing note page - EXO-73041 - M…
…eeds-io/MIPs#161 (#310) Implement create article from exiting note page feat: Refactor publish from existing note option integration - EXO-73041 - Meeds-io/MIPs#161 (#318) Refactor publish from existing note Integration
- Loading branch information
Showing
13 changed files
with
355 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
content-webapp/src/main/webapp/vue-app/news-extensions/note-publish-extensions/extensions.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export function initPublishExtension(params) { | ||
extensionRegistry.registerExtension('NotesMenu', 'menuActionMenu', { | ||
id: 'publishNote', | ||
labelKey: 'notes.publication.publish.save.label', | ||
icon: 'fas fa-paper-plane', | ||
sortable: true, | ||
cssClass: 'ps-2 pe-4 action-menu-item', | ||
rank: 30, | ||
enabled: (note) => eXo?.env?.portal?.notePublicationEnabled && !note.draftPage, | ||
action: (vm) => { | ||
vm.$root.$emit('open-publish-drawer', { | ||
savedSettings: params.savedSettings, | ||
targets: params.targets, | ||
canPublish: params.canPublish, | ||
canSchedule: params.canSchedule, | ||
}); | ||
} | ||
}); | ||
} |
Oops, something went wrong.