mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 10:59:30 +03:00
17 lines
343 B
JavaScript
17 lines
343 B
JavaScript
import ModalComponent from 'ghost/components/modals/base';
|
|
|
|
export default ModalComponent.extend({
|
|
user: null,
|
|
submitting: false,
|
|
|
|
actions: {
|
|
confirm() {
|
|
this.set('submitting', true);
|
|
|
|
this.attrs.confirm().finally(() => {
|
|
this.send('closeModal');
|
|
});
|
|
}
|
|
}
|
|
});
|