mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 09:52:09 +03:00
4ea3e13bd4
no issue - add `copyrightYear` CP to about page controller - displays the current year in the copyright notice
22 lines
395 B
JavaScript
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();
|
|
})
|
|
});
|