-
Notifications
You must be signed in to change notification settings - Fork 146
/
core.client.menus.js
57 lines (48 loc) · 1.25 KB
/
core.client.menus.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(function () {
'use strict';
angular
.module('core')
.run(menuConfig);
menuConfig.$inject = ['menuService'];
function menuConfig(menuService) {
menuService.addMenu('account', {
roles: ['user']
});
menuService.addMenuItem('account', {
title: '',
state: 'settings',
type: 'dropdown',
roles: ['user']
});
menuService.addSubMenuItem('account', 'settings', {
title: 'EDIT_PROFILE',
state: 'settings.profile',
faIcon: 'fa-id-card',
faClass: 'text-mt'
});
menuService.addSubMenuItem('account', 'settings', {
title: 'EDIT_PROFILE_PIC',
state: 'settings.picture',
faIcon: 'fa-image',
faClass: 'text-mt'
});
menuService.addSubMenuItem('account', 'settings', {
title: 'EDIT_SIGNATURE',
state: 'settings.signature',
faIcon: 'fa-sign',
faClass: 'text-mt'
});
menuService.addSubMenuItem('account', 'settings', {
title: 'CHANGE_PASSWORD',
state: 'settings.password',
faIcon: 'fa-lock',
faClass: 'text-mt'
});
menuService.addSubMenuItem('account', 'settings', {
title: 'RESET_PASSKEY',
state: 'settings.passkey',
faIcon: 'fa-key',
faClass: 'text-mt'
});
}
}());