Ghost/core/client/app/controllers/about.js
James Seymour-Lock 4ea3e13bd4 Always show current year in copyright text on "About" page
no issue
- add `copyrightYear` CP to about page controller
- displays the current year in the copyright notice
2016-01-25 11:33:10 +00:00

22 lines
395 B
JavaScript

import Ember from 'ember';
const {
Controller,
computed
} = Ember;
export default Controller.extend({
updateNotificationCount: 0,
actions: {
updateNotificationChange(count) {
this.set('updateNotificationCount', count);
}
},
copyrightYear: computed(function () {
let date = new Date();
return date.getFullYear();
})
});