1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-02-15 04:42:05 +00:00
ansible-playable/client/components/navbar/navbar.component.js

43 lines
811 B
JavaScript
Raw Normal View History

2017-06-07 17:36:44 +00:00
'use strict';
/* eslint no-sync: 0 */
import angular from 'angular';
export class NavbarComponent {
menu = [/*{
2017-06-07 17:36:44 +00:00
'title': 'Home',
'state': 'main'
2017-07-13 14:05:27 +00:00
},*/{
2017-06-07 17:36:44 +00:00
'title': 'Projects',
'state': 'project'
},{
'title': 'Designer',
2017-07-12 13:49:15 +00:00
'state': 'designer.inventory'
2017-06-07 17:36:44 +00:00
},{
'title': 'Runs',
'state': 'runs'
},{
'title': 'Modules',
'state': 'custom_modules'
}];
isCollapsed = true;
constructor(Auth, appConfig) {
2017-06-07 17:36:44 +00:00
'ngInject';
this.isLoggedIn = Auth.isLoggedInSync;
this.isAdmin = Auth.isAdminSync;
this.getCurrentUser = Auth.getCurrentUserSync;
this.appVersion = appConfig.version;
2017-06-07 17:36:44 +00:00
}
}
export default angular.module('directives.navbar', [])
.component('navbar', {
template: require('./navbar.html'),
controller: NavbarComponent
})
.name;