mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
7886cdcb79
closes https://github.com/TryGhost/Ghost/issues/7136 - pass user into the modal when displaying - fix the user->model alias in the modal component - update mirage user endpoints to respect `?include=count.posts` param
21 lines
458 B
JavaScript
21 lines
458 B
JavaScript
import ModalComponent from 'ghost-admin/components/modals/base';
|
|
import {invokeAction} from 'ember-invoke-action';
|
|
import {alias} from 'ember-computed';
|
|
|
|
export default ModalComponent.extend({
|
|
|
|
submitting: false,
|
|
|
|
user: alias('model'),
|
|
|
|
actions: {
|
|
confirm() {
|
|
this.set('submitting', true);
|
|
|
|
invokeAction(this, 'confirm').finally(() => {
|
|
this.send('closeModal');
|
|
});
|
|
}
|
|
}
|
|
});
|