2022-04-27 20:20:46 +03:00
|
|
|
<div class="flex flex-column h-100 items-center overflow-auto">
|
2022-05-05 17:59:34 +03:00
|
|
|
<header class="gh-publish-header" data-test-modal="publish-flow">
|
2022-05-16 14:50:54 +03:00
|
|
|
<button class="gh-btn-editor gh-publish-back-button" title="Close" type="button" {{on "click" @close}}>
|
2022-05-10 23:10:11 +03:00
|
|
|
<span>{{svg-jar "arrow-left"}} Editor</span>
|
2022-04-27 20:20:46 +03:00
|
|
|
</button>
|
2022-05-12 01:46:01 +03:00
|
|
|
|
2022-05-12 17:28:35 +03:00
|
|
|
{{#if (and (not this.emailErrorMessage) (not this.isComplete))}}
|
2022-05-16 16:22:14 +03:00
|
|
|
<div class="flex items-center pe-auto h-100">
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="gh-btn gh-btn-editor gh-editor-preview-trigger"
|
|
|
|
{{on "click" @data.togglePreviewPublish}}
|
|
|
|
>
|
|
|
|
<span>Preview</span>
|
|
|
|
</button>
|
2022-05-12 16:03:16 +03:00
|
|
|
<button class="gh-btn gh-btn-editor darkgrey gh-publish-trigger active" title="Close" type="button" {{on "click" @close}}>
|
|
|
|
<span>Publish</span>
|
|
|
|
</button>
|
|
|
|
<div class="settings-menu-toggle-spacer"></div>
|
|
|
|
</div>
|
2022-05-12 17:28:35 +03:00
|
|
|
{{/if}}
|
2022-04-27 20:20:46 +03:00
|
|
|
</header>
|
|
|
|
|
2022-05-19 14:02:10 +03:00
|
|
|
<div class="gh-publish-settings-container {{unless @data.skipAnimation "fade-in"}}">
|
2022-05-12 17:28:35 +03:00
|
|
|
{{#if this.emailErrorMessage}}
|
2022-05-24 20:20:35 +03:00
|
|
|
<Editor::Modals::PublishFlow::CompleteWithEmailError
|
2022-05-12 17:28:35 +03:00
|
|
|
@emailErrorMessage={{this.emailErrorMessage}}
|
|
|
|
@publishOptions={{@data.publishOptions}}
|
|
|
|
@close={{@close}}
|
|
|
|
/>
|
|
|
|
{{else if this.isConfirming}}
|
2022-05-24 20:20:35 +03:00
|
|
|
<Editor::Modals::PublishFlow::Confirm
|
2022-04-28 17:35:50 +03:00
|
|
|
@publishOptions={{@data.publishOptions}}
|
2022-05-06 12:23:37 +03:00
|
|
|
@recipientType={{this.recipientType}}
|
2022-05-04 12:30:37 +03:00
|
|
|
@saveTask={{this.saveTask}}
|
2022-04-28 17:35:50 +03:00
|
|
|
@cancel={{this.toggleConfirm}}
|
|
|
|
@close={{@close}}
|
|
|
|
/>
|
2022-05-04 12:30:37 +03:00
|
|
|
{{else if this.isComplete}}
|
2022-05-24 20:20:35 +03:00
|
|
|
<Editor::Modals::PublishFlow::Complete
|
2022-05-04 12:30:37 +03:00
|
|
|
@publishOptions={{@data.publishOptions}}
|
2022-05-19 12:23:45 +03:00
|
|
|
@recipientType={{this.recipientType}}
|
2022-05-10 14:51:05 +03:00
|
|
|
@postCount={{this.postCount}}
|
2022-05-04 12:30:37 +03:00
|
|
|
@close={{@close}}
|
|
|
|
/>
|
2022-04-28 17:35:50 +03:00
|
|
|
{{else}}
|
2022-05-24 20:20:35 +03:00
|
|
|
<Editor::Modals::PublishFlow::Options
|
2022-04-28 17:35:50 +03:00
|
|
|
@publishOptions={{@data.publishOptions}}
|
2022-05-06 12:23:37 +03:00
|
|
|
@recipientType={{this.recipientType}}
|
2022-04-28 17:35:50 +03:00
|
|
|
@confirm={{this.toggleConfirm}}
|
|
|
|
@close={{@close}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
2022-04-27 20:20:46 +03:00
|
|
|
</div>
|
|
|
|
</div>
|