{{#basic-dropdown verticalPosition="below" onOpen=(action "open") onClose=(action "close") as |dd|}} {{#dd.trigger class="gh-btn gh-btn-outline gh-publishmenu-trigger"}} {{triggerText}} {{svg-jar "arrow-down"}} {{/dd.trigger}} {{#dd.content class="gh-publishmenu-dropdown"}} {{#if (eq displayState "published")}} {{gh-publishmenu-published post=post saveType=saveType setSaveType=(action "setSaveType")}} {{else if (eq displayState "scheduled")}} {{gh-publishmenu-scheduled post=post saveType=saveType isClosing=isClosing setSaveType=(action "setSaveType")}} {{else}} {{gh-publishmenu-draft post=post saveType=saveType setSaveType=(action "setSaveType")}} {{/if}} {{!-- save button needs to be outside of menu components so it doesn't lose state or cancel the task when the post status updates and switches components --}} {{/dd.content}} {{/basic-dropdown}}