2015-05-24 00:47:23 -05:00
|
|
|
import Ember from 'ember';
|
|
|
|
|
|
|
|
export default Ember.Component.extend({
|
|
|
|
tagName: 'nav',
|
|
|
|
classNames: ['gh-nav'],
|
|
|
|
classNameBindings: ['open'],
|
|
|
|
|
2015-05-25 21:10:50 -05:00
|
|
|
config: Ember.inject.service(),
|
|
|
|
|
2015-05-24 00:47:23 -05:00
|
|
|
open: false,
|
|
|
|
|
2015-06-13 09:34:09 -05:00
|
|
|
mouseEnter: function () {
|
2015-05-27 16:39:56 +02:00
|
|
|
this.sendAction('onMouseEnter');
|
2015-05-24 00:47:23 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
actions: {
|
2015-06-13 09:34:09 -05:00
|
|
|
toggleAutoNav: function () {
|
|
|
|
this.sendAction('toggleMaximise');
|
2015-05-24 00:47:23 -05:00
|
|
|
},
|
|
|
|
|
2015-06-13 09:34:09 -05:00
|
|
|
openModal: function (modal) {
|
2015-05-24 00:47:23 -05:00
|
|
|
this.sendAction('openModal', modal);
|
2015-06-09 09:25:45 -07:00
|
|
|
},
|
|
|
|
|
2015-06-13 09:34:09 -05:00
|
|
|
closeMobileMenu: function () {
|
2015-06-09 09:25:45 -07:00
|
|
|
this.sendAction('closeMobileMenu');
|
2015-09-02 13:04:06 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
openAutoNav: function () {
|
|
|
|
this.sendAction('openAutoNav');
|
2015-05-24 00:47:23 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|