Ghost/ghost/admin/app/components/modals/theme-warnings.js
Kevin Ansfield 640499af70 show theme warnings/errors when activating a theme (#576)
closes https://github.com/TryGhost/Ghost/issues/8127
- update theme activation to manually set other themes to `active: false` in the store now that we only the active theme back from `/themes/:name/activate` endpoint
- move theme warning list item rendering into `{{gh-theme-error-li error=x}}`
- add `theme-warnings` modal that accepts a warnings list, title, and optional message
- after activating a theme, check if the theme has any warnings or errors and display an appropriate modal informing the user
2017-03-14 08:54:58 -05:00

11 lines
300 B
JavaScript

import ModalComponent from 'ghost-admin/components/modals/base';
import {reads} from 'ember-computed';
export default ModalComponent.extend({
title: reads('model.title'),
message: reads('model.message'),
warnings: reads('model.warnings'),
'data-test-theme-warnings-modal': true
});