diff --git a/ghost/admin/app/components/editor-labs/publish-management.hbs b/ghost/admin/app/components/editor-labs/publish-management.hbs new file mode 100644 index 0000000000..f81b8e0b29 --- /dev/null +++ b/ghost/admin/app/components/editor-labs/publish-management.hbs @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/ghost/admin/app/components/editor-labs/publish-management.js b/ghost/admin/app/components/editor-labs/publish-management.js new file mode 100644 index 0000000000..c2b7b3fe0d --- /dev/null +++ b/ghost/admin/app/components/editor-labs/publish-management.js @@ -0,0 +1,20 @@ +import Component from '@glimmer/component'; +import PublishFlowModal from '../modals/editor-labs/publish-flow'; +import {action} from '@ember/object'; +import {inject as service} from '@ember/service'; + +export default class PublishFlow extends Component { + @service modals; + + publishFlowModal = null; + + willDestroy() { + super.willDestroy(...arguments); + this.publishFlowModal?.close(); + } + + @action + openPublishFlow() { + this.publishFlowModal = this.modals.open(PublishFlowModal); + } +} diff --git a/ghost/admin/app/components/modals/editor-labs/publish-flow.hbs b/ghost/admin/app/components/modals/editor-labs/publish-flow.hbs new file mode 100644 index 0000000000..31b8e6f609 --- /dev/null +++ b/ghost/admin/app/components/modals/editor-labs/publish-flow.hbs @@ -0,0 +1,28 @@ +
+
+
+ +
+
+
+ +
+
+ Ready? + Right now + this post will be + published and sent + to + all subscribers + of + The Weekly Roundup. +
+ +
+ + +
+
+
\ No newline at end of file diff --git a/ghost/admin/app/components/modals/editor-labs/publish-flow.js b/ghost/admin/app/components/modals/editor-labs/publish-flow.js new file mode 100644 index 0000000000..0f0cc02683 --- /dev/null +++ b/ghost/admin/app/components/modals/editor-labs/publish-flow.js @@ -0,0 +1,8 @@ +import Component from '@glimmer/component'; + +export default class PublishModalComponent extends Component { + static modalOptions = { + className: 'fullscreen-modal-total-overlay', + omitBackdrop: true + }; +} diff --git a/ghost/admin/app/styles/components/modals.css b/ghost/admin/app/styles/components/modals.css index 942067ba9f..fcc897967b 100644 --- a/ghost/admin/app/styles/components/modals.css +++ b/ghost/admin/app/styles/components/modals.css @@ -78,6 +78,10 @@ background: var(--white) } +.fullscreen-modal-total-overlay .modal-content { + height: 100%; +} + .fullscreen-modal-action { margin: 6vw 0; } diff --git a/ghost/admin/app/templates/editor.hbs b/ghost/admin/app/templates/editor.hbs index 9a326a9740..34c27de3c7 100644 --- a/ghost/admin/app/templates/editor.hbs +++ b/ghost/admin/app/templates/editor.hbs @@ -43,14 +43,18 @@ @task={{this.save}} @runningText="Saving" @class="gh-btn gh-btn-icon gh-btn-editor contributor-save-button" - data-test-contributor-save=true /> + data-test-contributor-save /> {{else}} - + {{#if (feature "publishingFlow")}} + + {{else}} + + {{/if}} {{/if}} {{#unless this.showSettingsMenu}}