mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
050f4d99b6
no issue - https://github.com/ember-cli/eslint-plugin-ember/blob/HEAD/docs/rules/alias-model-in-controller.md - replace `model` with a meaningful property name everywhere possible - refactor `design` and `general` settings controllers to use a directly injected settings service rather than passing it in as a "model" to be more explicit
15 lines
400 B
JavaScript
15 lines
400 B
JavaScript
import Controller from '@ember/controller';
|
|
import {computed} from '@ember/object';
|
|
import {readOnly} from '@ember/object/computed';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default Controller.extend({
|
|
upgradeStatus: service(),
|
|
|
|
about: readOnly('model'),
|
|
|
|
copyrightYear: computed(function () {
|
|
let date = new Date();
|
|
return date.getFullYear();
|
|
})
|
|
});
|