mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
7ab0db9be7
no issue - converted publish menu and `gh-tags-list-item` components to glimmer syntax so data attributes can be passed in via `...attributes` - added explicit `data-test-button` bound attribute to `gh-task-button` component - moved `modal-theme-warnings` auto-bound data attribute from JS file to explicit html attribute in template
18 lines
477 B
JavaScript
18 lines
477 B
JavaScript
import ModalComponent from 'ghost-admin/components/modal-base';
|
|
import {reads} from '@ember/object/computed';
|
|
|
|
export default ModalComponent.extend({
|
|
title: reads('model.title'),
|
|
message: reads('model.message'),
|
|
warnings: reads('model.warnings'),
|
|
errors: reads('model.errors'),
|
|
fatalErrors: reads('model.fatalErrors'),
|
|
canActivate: reads('model.canActivate'),
|
|
|
|
actions: {
|
|
confirm() {
|
|
this.send('closeModal');
|
|
}
|
|
}
|
|
});
|