This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core menu): Menuize the account routes so they can be added to by…
… submodules Newlines fix Removed Comment
- Loading branch information
1 parent
3ab760a
commit 48eabd0
Showing
3 changed files
with
50 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
(function () { | ||
'use strict'; | ||
|
||
angular | ||
.module('core') | ||
.run(MenuConfig); | ||
|
||
MenuConfig.$inject = ['Menus']; | ||
|
||
function MenuConfig(Menus) { | ||
|
||
Menus.addMenu('account', { | ||
roles: ['user'] | ||
}); | ||
|
||
Menus.addMenuItem('account', { | ||
title: '', | ||
state: 'settings', | ||
type: 'dropdown', | ||
roles: ['user'] | ||
}); | ||
|
||
Menus.addSubMenuItem('account', 'settings', { | ||
title: 'Edit Profile', | ||
state: 'settings.profile' | ||
}); | ||
|
||
Menus.addSubMenuItem('account', 'settings', { | ||
title: 'Edit Profile Picture', | ||
state: 'settings.picture' | ||
}); | ||
|
||
Menus.addSubMenuItem('account', 'settings', { | ||
title: 'Change Password', | ||
state: 'settings.password' | ||
}); | ||
|
||
Menus.addSubMenuItem('account', 'settings', { | ||
title: 'Manage Social Accounts', | ||
state: 'settings.accounts' | ||
}); | ||
|
||
} | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters