mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-02-15 04:42:05 +00:00
42 lines
807 B
JavaScript
42 lines
807 B
JavaScript
'use strict';
|
|
/* eslint no-sync: 0 */
|
|
|
|
import angular from 'angular';
|
|
|
|
export class NavbarComponent {
|
|
menu = [{
|
|
'title': 'Home',
|
|
'state': 'main'
|
|
},{
|
|
'title': 'Projects',
|
|
'state': 'project'
|
|
},{
|
|
'title': 'Designer',
|
|
'state': 'designer.inventory'
|
|
},{
|
|
'title': 'Runs',
|
|
'state': 'runs'
|
|
},{
|
|
'title': 'Modules',
|
|
'state': 'custom_modules'
|
|
}];
|
|
|
|
isCollapsed = true;
|
|
|
|
constructor(Auth, appConfig) {
|
|
'ngInject';
|
|
|
|
this.isLoggedIn = Auth.isLoggedInSync;
|
|
this.isAdmin = Auth.isAdminSync;
|
|
this.getCurrentUser = Auth.getCurrentUserSync;
|
|
this.appVersion = appConfig.version;
|
|
}
|
|
|
|
}
|
|
|
|
export default angular.module('directives.navbar', [])
|
|
.component('navbar', {
|
|
template: require('./navbar.html'),
|
|
controller: NavbarComponent
|
|
})
|
|
.name;
|