mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-02-15 04:42:05 +00:00
42 lines
745 B
JavaScript
42 lines
745 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'
|
||
|
},{
|
||
|
'title': 'Runs',
|
||
|
'state': 'runs'
|
||
|
},{
|
||
|
'title': 'Modules',
|
||
|
'state': 'custom_modules'
|
||
|
}];
|
||
|
|
||
|
isCollapsed = true;
|
||
|
|
||
|
constructor(Auth) {
|
||
|
'ngInject';
|
||
|
|
||
|
this.isLoggedIn = Auth.isLoggedInSync;
|
||
|
this.isAdmin = Auth.isAdminSync;
|
||
|
this.getCurrentUser = Auth.getCurrentUserSync;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default angular.module('directives.navbar', [])
|
||
|
.component('navbar', {
|
||
|
template: require('./navbar.html'),
|
||
|
controller: NavbarComponent
|
||
|
})
|
||
|
.name;
|