mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
21 lines
525 B
JavaScript
21 lines
525 B
JavaScript
|
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);
|
||
|
}
|
||
|
}
|