2014-03-11 20:23:32 +04:00
|
|
|
var ApplicationController = Ember.Controller.extend({
|
2014-10-25 01:09:50 +04:00
|
|
|
// jscs: disable
|
2014-08-06 19:08:02 +04:00
|
|
|
hideNav: Ember.computed.match('currentPath', /(error|signin|signup|setup|forgotten|reset)/),
|
2014-10-25 01:09:50 +04:00
|
|
|
// jscs: enable
|
2014-05-15 03:36:13 +04:00
|
|
|
|
2014-07-17 21:28:53 +04:00
|
|
|
topNotificationCount: 0,
|
2014-09-01 20:45:06 +04:00
|
|
|
showGlobalMobileNav: false,
|
2014-10-13 19:23:06 +04:00
|
|
|
showSettingsMenu: false,
|
2014-07-17 21:28:53 +04:00
|
|
|
|
2014-10-21 20:02:11 +04:00
|
|
|
userImageAlt: Ember.computed('session.user.name', function () {
|
|
|
|
var name = this.get('session.user.name');
|
|
|
|
|
|
|
|
return name + '\'s profile picture';
|
|
|
|
}),
|
|
|
|
|
2014-04-07 02:11:22 +04:00
|
|
|
actions: {
|
2014-07-17 21:28:53 +04:00
|
|
|
topNotificationChange: function (count) {
|
|
|
|
this.set('topNotificationCount', count);
|
2014-04-07 02:11:22 +04:00
|
|
|
}
|
|
|
|
}
|
2014-03-11 20:23:32 +04:00
|
|
|
});
|
|
|
|
|
2014-07-17 21:28:53 +04:00
|
|
|
export default ApplicationController;
|