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