2017-03-26 00:52:31 +08:00
|
|
|
(function () {
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
angular
|
|
|
|
|
.module('forums')
|
|
|
|
|
.run(menuConfig);
|
|
|
|
|
|
2017-05-05 18:27:22 +08:00
|
|
|
menuConfig.$inject = ['menuService'];
|
2017-03-26 00:52:31 +08:00
|
|
|
|
2017-05-05 18:27:22 +08:00
|
|
|
function menuConfig(menuService) {
|
2017-03-26 00:52:31 +08:00
|
|
|
// Set top bar menu items
|
|
|
|
|
menuService.addMenuItem('topbar', {
|
2017-05-05 18:27:22 +08:00
|
|
|
title: 'MENU_FORUMS',
|
2017-07-06 15:39:51 +08:00
|
|
|
state: 'forums.list',
|
2017-03-26 18:27:53 +08:00
|
|
|
roles: ['*'],
|
2018-06-18 20:32:11 +08:00
|
|
|
class: 'sm-hide',
|
|
|
|
|
position: 6
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//add to more
|
|
|
|
|
menuService.addSubMenuItem('topbar', 'more', {
|
|
|
|
|
title: 'MENU_FORUMS',
|
|
|
|
|
state: 'forums.list',
|
|
|
|
|
roles: ['*'],
|
|
|
|
|
faIcon: 'fa-bars',
|
|
|
|
|
faClass: 'text-mt',
|
|
|
|
|
position: 2
|
2017-03-26 00:52:31 +08:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}());
|