Ghost/ghost/admin/app/controllers/settings/apps/index.js
Kevin Ansfield 62e58b0366 🐛 Fixed "active" state of apps on apps index screen (#843)
no issue

On the apps index screen there were conditionals for each app so that active apps show "Active" instead of "Configure" when they are activated - the conditionals weren't working because the properties they check for weren't available in the template's context.

- add a new `settings/apps/index` controller that imports the `settings` service
- updates template conditionals to check for properties on the `settings` service
2017-08-30 14:31:04 +02:00

7 lines
170 B
JavaScript

import Controller from '@ember/controller';
import {inject as injectService} from '@ember/service';
export default Controller.extend({
settings: injectService()
});