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