mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-04 11:11:05 +01:00
Update the articles module to implement the style guidelines. Much of this work is from @trainerbill Closes #874 Closes #339
32 lines
630 B
JavaScript
32 lines
630 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('articles')
|
|
.run(menuConfig);
|
|
|
|
menuConfig.$inject = ['Menus'];
|
|
|
|
function menuConfig(Menus) {
|
|
Menus.addMenuItem('topbar', {
|
|
title: 'Articles',
|
|
state: 'articles',
|
|
type: 'dropdown',
|
|
roles: ['*']
|
|
});
|
|
|
|
// Add the dropdown list item
|
|
Menus.addSubMenuItem('topbar', 'articles', {
|
|
title: 'List Articles',
|
|
state: 'articles.list'
|
|
});
|
|
|
|
// Add the dropdown create item
|
|
Menus.addSubMenuItem('topbar', 'articles', {
|
|
title: 'Create Article',
|
|
state: 'articles.create',
|
|
roles: ['user']
|
|
});
|
|
}
|
|
})();
|