mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
eb1cf51bf6
no issue - `this.attrs` is a glimmer-component thing (which doesn't exist in Ghost yet), to avoid confusion we should avoid using it - https://locks.svbtle.com/to-attrs-or-not-to-attrs - https://github.com/cibernox/ember-power-select/issues/233#issuecomment-170352572
16 lines
344 B
JavaScript
16 lines
344 B
JavaScript
import ModalComponent from 'ghost/components/modals/base';
|
|
|
|
export default ModalComponent.extend({
|
|
user: null,
|
|
submitting: false,
|
|
|
|
actions: {
|
|
confirm() {
|
|
this.set('submitting', true);
|
|
|
|
this.get('confirm')().finally(() => {
|
|
this.send('closeModal');
|
|
});
|
|
}
|
|
}
|
|
});
|