2015-02-12 23:22:32 -05:00
|
|
|
import Ember from 'ember';
|
2015-05-24 00:47:23 -05:00
|
|
|
|
|
|
|
export default Ember.Controller.extend({
|
2014-10-24 16:09:50 -05:00
|
|
|
// jscs: disable
|
2015-05-21 22:47:51 -05:00
|
|
|
signedOut: Ember.computed.match('currentPath', /(signin|signup|setup|reset)/),
|
2014-10-24 16:09:50 -05:00
|
|
|
// jscs: enable
|
2014-05-14 18:36:13 -05:00
|
|
|
|
2014-07-17 12:28:53 -05:00
|
|
|
topNotificationCount: 0,
|
2015-05-24 00:47:23 -05:00
|
|
|
showNavMenu: false,
|
2014-10-13 10:23:06 -05:00
|
|
|
showSettingsMenu: false,
|
2014-07-17 12:28:53 -05:00
|
|
|
|
2015-05-24 00:47:23 -05:00
|
|
|
autoNav: false,
|
2014-10-21 11:02:11 -05:00
|
|
|
|
2014-04-06 17:11:22 -05:00
|
|
|
actions: {
|
2014-07-17 12:28:53 -05:00
|
|
|
topNotificationChange: function (count) {
|
|
|
|
this.set('topNotificationCount', count);
|
2015-05-24 00:47:23 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
closeNavMenu: function () {
|
|
|
|
this.get('dropdown').closeDropdowns();
|
|
|
|
this.set('showNavMenu', false);
|
|
|
|
},
|
|
|
|
|
|
|
|
navMenuToggleMaximise: function () {
|
|
|
|
this.toggleProperty('autoNav');
|
2014-04-06 17:11:22 -05:00
|
|
|
}
|
|
|
|
}
|
2014-03-11 11:23:32 -05:00
|
|
|
});
|