mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
17 lines
327 B
JavaScript
17 lines
327 B
JavaScript
|
import ModalComponent from 'ghost-admin/components/modal-base';
|
||
|
|
||
|
export default ModalComponent.extend({
|
||
|
actions: {
|
||
|
confirm() {
|
||
|
this.closeModal();
|
||
|
}
|
||
|
},
|
||
|
|
||
|
click() {
|
||
|
let input = this.element.querySelector('input');
|
||
|
if (input) {
|
||
|
input.focus();
|
||
|
}
|
||
|
}
|
||
|
});
|