refactoring, renaming capitalized functions to proper case, etc
This commit is contained in:
@@ -26,29 +26,29 @@ export default function initialize() {
|
||||
addNavItem(locale.get("Home"), "home", "/");
|
||||
|
||||
if (
|
||||
roles.hasRole(roles.AuthorizationRoles.TechLimited) ||
|
||||
roles.hasRole(roles.AuthorizationRoles.TechFull) ||
|
||||
roles.hasRole(roles.AuthorizationRoles.SubContractorLimited) ||
|
||||
roles.hasRole(roles.AuthorizationRoles.SubContractorFull)
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.TechLimited) ||
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.TechFull) ||
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.SubContractorLimited) ||
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.SubContractorFull)
|
||||
) {
|
||||
addNavItem(locale.get("Service"), "toolbox", "/service");
|
||||
}
|
||||
|
||||
if (
|
||||
roles.hasRole(roles.AuthorizationRoles.DispatchLimited) ||
|
||||
roles.hasRole(roles.AuthorizationRoles.DispatchFull)
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.DispatchLimited) ||
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.DispatchFull)
|
||||
) {
|
||||
addNavItem(locale.get("Dispatch"), "shipping-fast", "/dispatch");
|
||||
}
|
||||
|
||||
if (
|
||||
roles.hasRole(roles.AuthorizationRoles.InventoryLimited) ||
|
||||
roles.hasRole(roles.AuthorizationRoles.InventoryFull)
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.InventoryLimited) ||
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.InventoryFull)
|
||||
) {
|
||||
addNavItem(locale.get("Inventory"), "dolly", "/inventory");
|
||||
}
|
||||
|
||||
if (roles.hasRole(roles.AuthorizationRoles.AccountingFull)) {
|
||||
if (roles.hasRole(roles.AUTHORIZATION_ROLES.AccountingFull)) {
|
||||
addNavItem(
|
||||
locale.get("Accounting"),
|
||||
"file-invoice-dollar",
|
||||
@@ -57,15 +57,15 @@ export default function initialize() {
|
||||
}
|
||||
|
||||
if (
|
||||
roles.hasRole(roles.AuthorizationRoles.BizAdminLimited) ||
|
||||
roles.hasRole(roles.AuthorizationRoles.BizAdminFull)
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.BizAdminLimited) ||
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.BizAdminFull)
|
||||
) {
|
||||
addNavItem(locale.get("Administration"), "user-tie", "/admin");
|
||||
}
|
||||
|
||||
if (
|
||||
roles.hasRole(roles.AuthorizationRoles.OpsAdminFull) ||
|
||||
roles.hasRole(roles.AuthorizationRoles.OpsAdminLimited)
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.OpsAdminFull) ||
|
||||
roles.hasRole(roles.AUTHORIZATION_ROLES.OpsAdminLimited)
|
||||
) {
|
||||
addNavItem(locale.get("Operations"), "cogs", "ops");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user