This commit is contained in:
2020-06-24 22:17:57 +00:00
parent b95d92dc92
commit 6bb3ac290c
4 changed files with 78 additions and 85 deletions

View File

@@ -32,7 +32,7 @@
> >
<template v-slot:activator> <template v-slot:activator>
<!--group activator --> <!--group activator -->
<v-list-item-title>{{ item.title }}</v-list-item-title> <v-list-item-title>{{ $ay.t(item.title) }}</v-list-item-title>
</template> </template>
<!-- TOP LEVEL HOLDER SUBITEMS --> <!-- TOP LEVEL HOLDER SUBITEMS -->
@@ -50,7 +50,7 @@
<template v-slot:activator> <template v-slot:activator>
<v-list-item-content> <v-list-item-content>
<v-list-item-title>{{ <v-list-item-title>{{
subitem.title $ay.t(subitem.title)
}}</v-list-item-title> }}</v-list-item-title>
</v-list-item-content> </v-list-item-content>
</template> </template>
@@ -68,7 +68,7 @@
> >
</v-list-item-action> </v-list-item-action>
<v-list-item-title <v-list-item-title
v-text="subsub.title" :v-text="$ay.t(subsub.title)"
></v-list-item-title> ></v-list-item-title>
</v-list-item> </v-list-item>
<!-- was end of v-list-group here --> <!-- was end of v-list-group here -->
@@ -91,7 +91,7 @@
</v-list-item-action> </v-list-item-action>
<v-list-item-content> <v-list-item-content>
<v-list-item-title>{{ <v-list-item-title>{{
subitem.title $ay.t(subitem.title)
}}</v-list-item-title> }}</v-list-item-title>
</v-list-item-content> </v-list-item-content>
</v-list-item> </v-list-item>
@@ -115,7 +115,7 @@
}}</v-icon> }}</v-icon>
</v-list-item-action> </v-list-item-action>
<v-list-item-content> <v-list-item-content>
<v-list-item-title>{{ item.title }}</v-list-item-title> <v-list-item-title>{{ $ay.t(item.title) }}</v-list-item-title>
</v-list-item-content> </v-list-item-content>
</v-list-item> </v-list-item>
</div> </div>
@@ -140,7 +140,7 @@
<v-toolbar-title style="width: 300px" class="ml-0 pl-4"> <v-toolbar-title style="width: 300px" class="ml-0 pl-4">
<v-icon>{{ appBar.icon }}</v-icon <v-icon>{{ appBar.icon }}</v-icon
>&nbsp; >&nbsp;
<span>{{ appBar.title }}</span> <span>{{ $ay.t(appBar.title) }}</span>
</v-toolbar-title> </v-toolbar-title>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-toolbar-items> <v-toolbar-items>
@@ -198,7 +198,7 @@
</v-list-item-action> </v-list-item-action>
<v-list-item-content> <v-list-item-content>
<v-list-item-title> <v-list-item-title>
<span>{{ item.title }}</span> <span>{{ $ay.t(item.title) }}</span>
</v-list-item-title> </v-list-item-title>
</v-list-item-content> </v-list-item-content>
</v-list-item> </v-list-item>

View File

@@ -75,14 +75,14 @@ export default {
//there will be few exceptions so they will be coded in later if needed but assume anything with an id and a type //there will be few exceptions so they will be coded in later if needed but assume anything with an id and a type
if (isCoreBizObject) { if (isCoreBizObject) {
// vm.appBar.menuItems.push({ // vm.appBar.menuItems.push({
// title: window.$gz.translation.get("Attachments"), // title: "Attachments"),
// icon: "fa-paperclip", // icon: "fa-paperclip",
// key: "app:attachments", // key: "app:attachments",
// data: { ayaType: formAyaType, recordId: formRecordId } // data: { ayaType: formAyaType, recordId: formRecordId }
// }); // });
// vm.appBar.menuItems.push({ // vm.appBar.menuItems.push({
// title: window.$gz.translation.get("WikiPage"), // title: "WikiPage"),
// icon: "fa-feather", // icon: "fa-feather",
// key: "app:wiki", // key: "app:wiki",
// data: { ayaType: formAyaType, recordId: formRecordId } // data: { ayaType: formAyaType, recordId: formRecordId }
@@ -92,7 +92,7 @@ export default {
//basically it's now a "Reminder" type of object but it's own thing with separate collection //basically it's now a "Reminder" type of object but it's own thing with separate collection
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("Review"), title: "Review",
icon: "fa-calendar-check", icon: "fa-calendar-check",
key: "app:review", key: "app:review",
data: { ayaType: formAyaType, recordId: formRecordId } data: { ayaType: formAyaType, recordId: formRecordId }
@@ -101,7 +101,7 @@ export default {
//AFAIK right now any item with an id and a type can have a history //AFAIK right now any item with an id and a type can have a history
//anything not would be the exception rather than the rule //anything not would be the exception rather than the rule
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("History"), title: "History",
icon: "fa-history", icon: "fa-history",
key: "app:history", key: "app:history",
data: { ayaType: formAyaType, recordId: formRecordId } data: { ayaType: formAyaType, recordId: formRecordId }
@@ -111,7 +111,7 @@ export default {
//PLUGINS - for anything with a type but not necessarily an ID //PLUGINS - for anything with a type but not necessarily an ID
if (!UTILITY_TYPES.includes(formAyaType)) { if (!UTILITY_TYPES.includes(formAyaType)) {
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("More"), title: "More",
icon: "fa-puzzle-piece", icon: "fa-puzzle-piece",
key: "app:plugin", key: "app:plugin",
data: formAyaType, data: formAyaType,
@@ -138,7 +138,7 @@ export default {
// vm.appBar.menuItems.push({ divider: true, inset: false }); // vm.appBar.menuItems.push({ divider: true, inset: false });
//customize //customize
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("Customize"), title: "Customize",
icon: "fa-sliders-h", icon: "fa-sliders-h",
data: ctx.formData.formCustomTemplateKey, data: ctx.formData.formCustomTemplateKey,
key: "app:customize" key: "app:customize"
@@ -161,7 +161,7 @@ export default {
if (!ctx.hideSearch && !UTILITY_TYPES.includes(formAyaType)) { if (!ctx.hideSearch && !UTILITY_TYPES.includes(formAyaType)) {
//For all forms but not on the search form itself; if this is necessary for others then make a nosearch or something flag controlled by incoming ctx but if not then this should suffice //For all forms but not on the search form itself; if this is necessary for others then make a nosearch or something flag controlled by incoming ctx but if not then this should suffice
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("Search"), title: "Search",
icon: "fa-search", icon: "fa-search",
key: "app:search", key: "app:search",
data: formAyaType data: formAyaType
@@ -170,7 +170,7 @@ export default {
//HELP //HELP
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("MenuHelp"), title: "MenuHelp",
icon: "fa-question-circle", icon: "fa-question-circle",
key: "app:help", key: "app:help",
data: vm.appBar.helpUrl data: vm.appBar.helpUrl
@@ -179,7 +179,7 @@ export default {
//ABOUT //ABOUT
if (!isCoreBizObject && !ctx.helpUrl != "form-ay-about") { if (!isCoreBizObject && !ctx.helpUrl != "form-ay-about") {
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("HelpAboutAyaNova"), title: "HelpAboutAyaNova",
icon: "fa-info-circle", icon: "fa-info-circle",
key: "app:nav:abt", key: "app:nav:abt",
data: "ay-about" data: "ay-about"

View File

@@ -48,14 +48,14 @@ function initNavPanel() {
licenseState == 5 licenseState == 5
) { ) {
addNavItem( addNavItem(
t("HelpLicense"), "HelpLicense",
"fa-ticket-alt", "fa-ticket-alt",
"/adm-license", "/adm-license",
[], [],
key++, key++,
"license" "license"
); );
addNavItem(t("Logout"), "fa-sign-out-alt", "/login", [], key++, "logout"); addNavItem("Logout", "fa-sign-out-alt", "/login", [], key++, "logout");
window.$gz.store.commit("setHomePage", "/adm-license"); window.$gz.store.commit("setHomePage", "/adm-license");
return; return;
} }
@@ -81,7 +81,7 @@ function initNavPanel() {
) { ) {
//DASHBOARD //DASHBOARD
sub.push({ sub.push({
title: t("Dashboard"), title: "Dashboard",
icon: "fa-tachometer-alt", icon: "fa-tachometer-alt",
route: "/home-dashboard", route: "/home-dashboard",
key: key++ key: key++
@@ -107,7 +107,7 @@ function initNavPanel() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("Search"), title: "Search",
icon: "fa-search", icon: "fa-search",
route: "/home-search", route: "/home-search",
key: key++ key: key++
@@ -116,7 +116,7 @@ function initNavPanel() {
//SCHEDULE (personal) //SCHEDULE (personal)
sub.push({ sub.push({
title: t("Schedule"), title: "Schedule",
icon: "fa-calendar-day", icon: "fa-calendar-day",
route: "/home-schedule", route: "/home-schedule",
key: key++ key: key++
@@ -124,7 +124,7 @@ function initNavPanel() {
//MEMOS //MEMOS
sub.push({ sub.push({
title: t("MemoList"), title: "MemoList",
icon: "fa-inbox", icon: "fa-inbox",
route: "/home-memos", route: "/home-memos",
key: key++ key: key++
@@ -132,7 +132,7 @@ function initNavPanel() {
//REMINDERS (SCHEDULE MARKERS) //REMINDERS (SCHEDULE MARKERS)
sub.push({ sub.push({
title: t("ReminderList"), title: "ReminderList",
icon: "fa-sticky-note", icon: "fa-sticky-note",
route: "/home-reminders", route: "/home-reminders",
key: key++ key: key++
@@ -140,7 +140,7 @@ function initNavPanel() {
//USER SETTINGS //USER SETTINGS
sub.push({ sub.push({
title: t("UserSettings"), title: "UserSettings",
icon: "fa-user-cog", icon: "fa-user-cog",
route: "/home-user-settings", route: "/home-user-settings",
key: key++ key: key++
@@ -149,7 +149,7 @@ function initNavPanel() {
//Moved these two into user settings //Moved these two into user settings
// //USER TRANSLATE // //USER TRANSLATE
// sub.push({ // sub.push({
// title: t("Translation"), // title: "Translation",
// icon: "fa-language", // icon: "fa-language",
// route: "/home-translation", // route: "/home-translation",
// key: key++ // key: key++
@@ -157,7 +157,7 @@ function initNavPanel() {
// //SET LOGIN // //SET LOGIN
// sub.push({ // sub.push({
// title: t("SetLoginPassword"), // title: "SetLoginPassword",
// icon: "fa-key", // icon: "fa-key",
// route: "/home-password", // route: "/home-password",
// key: key++ // key: key++
@@ -181,7 +181,7 @@ function initNavPanel() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("NotifySubscriptionList"), title: "NotifySubscriptionList",
icon: "fa-bullhorn", icon: "fa-bullhorn",
route: "/home-notify-subscriptions", route: "/home-notify-subscriptions",
key: key++ key: key++
@@ -189,7 +189,7 @@ function initNavPanel() {
} }
//HOME //HOME
addNavItem(t("Home"), "fa-home", undefined, sub, key++, "home"); addNavItem("Home", "fa-home", undefined, sub, key++, "home");
} }
//****************** CUSTOMERS //****************** CUSTOMERS
@@ -211,7 +211,7 @@ function initNavPanel() {
//CUSTOMERS subitem //CUSTOMERS subitem
sub.push({ sub.push({
title: t("CustomerList"), title: "CustomerList",
icon: "fa-address-card", icon: "fa-address-card",
route: "/cust-customers", route: "/cust-customers",
key: key++ key: key++
@@ -219,7 +219,7 @@ function initNavPanel() {
//HEAD OFFICES subitem //HEAD OFFICES subitem
sub.push({ sub.push({
title: t("HeadOfficeList"), title: "HeadOfficeList",
icon: "fa-sitemap", icon: "fa-sitemap",
route: "/cust-headoffices", route: "/cust-headoffices",
key: key++ key: key++
@@ -227,7 +227,7 @@ function initNavPanel() {
// ** CUSTOMER (TOP) // ** CUSTOMER (TOP)
addNavItem( addNavItem(
t("CustomerList"), "CustomerList",
"fa-address-book", "fa-address-book",
undefined, undefined,
sub, sub,
@@ -263,7 +263,7 @@ function initNavPanel() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("Schedule"), title: "Schedule",
icon: "fa-calendar-alt", icon: "fa-calendar-alt",
route: "/svc-schedule", route: "/svc-schedule",
key: key++ key: key++
@@ -282,7 +282,7 @@ function initNavPanel() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("WorkOrderList"), title: "WorkOrderList",
icon: "fa-tools", icon: "fa-tools",
route: "/svc-workorders", route: "/svc-workorders",
key: key++ key: key++
@@ -293,7 +293,7 @@ function initNavPanel() {
//this will be an item inside the workorders NEW menu or grid or wherever but it's not top level worthy //this will be an item inside the workorders NEW menu or grid or wherever but it's not top level worthy
//there used to be an array for 3rd level shit but that's whack yo! ;) //there used to be an array for 3rd level shit but that's whack yo! ;)
// subSub.push({ // subSub.push({
// title: t("WorkOrderServiceTemplate"), // title: "WorkOrderServiceTemplate",
// icon: "fa-stamp", // icon: "fa-stamp",
// route: "/svc-workorder-templates", // route: "/svc-workorder-templates",
// key: key++ // key: key++
@@ -303,7 +303,7 @@ function initNavPanel() {
//NOTE: this is the only item in this service level area that is visible to Sales //NOTE: this is the only item in this service level area that is visible to Sales
//so there is no separate role check here as the service group role check supersedes this //so there is no separate role check here as the service group role check supersedes this
sub.push({ sub.push({
title: t("QuoteList"), title: "QuoteList",
icon: "fa-pencil-alt", icon: "fa-pencil-alt",
route: "/svc-quotes", route: "/svc-quotes",
key: key++ key: key++
@@ -321,7 +321,7 @@ function initNavPanel() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("PMList"), title: "PMList",
icon: "fa-business-time", icon: "fa-business-time",
route: "/svc-pm-list", route: "/svc-pm-list",
key: key++ key: key++
@@ -340,7 +340,7 @@ function initNavPanel() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("UnitList"), title: "UnitList",
icon: "fa-fan", icon: "fa-fan",
route: "/svc-units", route: "/svc-units",
key: key++ key: key++
@@ -348,7 +348,7 @@ function initNavPanel() {
//UNIT MODELS subitem //UNIT MODELS subitem
sub.push({ sub.push({
title: t("UnitModels"), title: "UnitModels",
icon: "fa-dice-d20", icon: "fa-dice-d20",
route: "/svc-unit-models", route: "/svc-unit-models",
key: key++ key: key++
@@ -366,7 +366,7 @@ function initNavPanel() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("LoanUnitList"), title: "LoanUnitList",
icon: "fa-plug", icon: "fa-plug",
route: "/svc-loaners", route: "/svc-loaners",
key: key++ key: key++
@@ -385,7 +385,7 @@ function initNavPanel() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("ContractList"), title: "ContractList",
icon: "fa-file-contract", icon: "fa-file-contract",
route: "/svc-contracts", route: "/svc-contracts",
key: key++ key: key++
@@ -404,7 +404,7 @@ function initNavPanel() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("CustomerServiceRequestList"), title: "CustomerServiceRequestList",
icon: "fa-child", icon: "fa-child",
route: "/svc-csr-list", route: "/svc-csr-list",
key: key++ key: key++
@@ -412,7 +412,7 @@ function initNavPanel() {
} }
//**** Service (TOP GROUP) //**** Service (TOP GROUP)
addNavItem(t("Service"), "fa-toolbox", undefined, sub, key++, "service"); addNavItem("Service", "fa-toolbox", undefined, sub, key++, "service");
} }
//****************** INVENTORY //****************** INVENTORY
@@ -429,7 +429,7 @@ function initNavPanel() {
//PARTS (part list) //PARTS (part list)
sub.push({ sub.push({
title: t("PartList"), title: "PartList",
icon: "fa-boxes", icon: "fa-boxes",
route: "/inv-parts", route: "/inv-parts",
key: key++ key: key++
@@ -437,7 +437,7 @@ function initNavPanel() {
//INVENTORY //INVENTORY
sub.push({ sub.push({
title: t("PartByWarehouseInventoryList"), title: "PartByWarehouseInventoryList",
icon: "fa-pallet", icon: "fa-pallet",
route: "/inv-part-inventory", route: "/inv-part-inventory",
key: key++ key: key++
@@ -445,7 +445,7 @@ function initNavPanel() {
//PART REQUESTS //PART REQUESTS
sub.push({ sub.push({
title: t("WorkOrderItemPartRequestList"), title: "WorkOrderItemPartRequestList",
icon: "fa-paper-plane", icon: "fa-paper-plane",
route: "/inv-part-requests", route: "/inv-part-requests",
key: key++ key: key++
@@ -453,7 +453,7 @@ function initNavPanel() {
//PURCHASE ORDERS //PURCHASE ORDERS
sub.push({ sub.push({
title: t("InventoryPurchaseOrders"), title: "InventoryPurchaseOrders",
icon: "fa-shipping-fast", icon: "fa-shipping-fast",
route: "/inv-purchase-orders", route: "/inv-purchase-orders",
key: key++ key: key++
@@ -463,7 +463,7 @@ function initNavPanel() {
//PURCHASE ORDER RECEIPTS //PURCHASE ORDER RECEIPTS
sub.push({ sub.push({
title: t("InventoryPurchaseOrderReceipts"), title: "InventoryPurchaseOrderReceipts",
icon: "fa-dolly-flatbed", icon: "fa-dolly-flatbed",
route: "/inv-purchase-order-receipts", route: "/inv-purchase-order-receipts",
key: key++ key: key++
@@ -475,14 +475,14 @@ function initNavPanel() {
//ADJUSTMENTS //ADJUSTMENTS
sub.push({ sub.push({
title: t("InventoryPartInventoryAdjustments"), title: "InventoryPartInventoryAdjustments",
icon: "fa-dolly", icon: "fa-dolly",
route: "/inv-adjustments", route: "/inv-adjustments",
key: key++ key: key++
}); });
//**** INVENTORY (TOP GROUP) //**** INVENTORY (TOP GROUP)
addNavItem(t("Inventory"), "fa-box", undefined, sub, key++, "inventory"); addNavItem("Inventory", "fa-box", undefined, sub, key++, "inventory");
} }
//**** VENDORS (TOP GROUP) //**** VENDORS (TOP GROUP)
@@ -497,7 +497,7 @@ function initNavPanel() {
role.InventoryLimited role.InventoryLimited
]) ])
) { ) {
addNavItem(t("VendorList"), "fa-store", "/vendors", [], key++, "vendor"); addNavItem("VendorList", "fa-store", "/vendors", [], key++, "vendor");
} }
//****************** ACCOUNTING //****************** ACCOUNTING
@@ -512,7 +512,7 @@ function initNavPanel() {
//FAKE subitem as is still TBD //FAKE subitem as is still TBD
sub.push({ sub.push({
title: t("Accounting"), title: "Accounting",
icon: "fa-calculator", icon: "fa-calculator",
route: "/acc-accounting", route: "/acc-accounting",
key: key++ key: key++
@@ -520,7 +520,7 @@ function initNavPanel() {
// ** ACCOUNTING (TOP) // ** ACCOUNTING (TOP)
addNavItem( addNavItem(
t("Accounting"), "Accounting",
"fa-calculator", "fa-calculator",
undefined, undefined,
sub, sub,
@@ -536,7 +536,7 @@ function initNavPanel() {
// GLOBAL SETTINGS // GLOBAL SETTINGS
sub.push({ sub.push({
title: t("AdministrationGlobalSettings"), title: "AdministrationGlobalSettings",
icon: "fa-cogs", icon: "fa-cogs",
route: "/adm-global-settings", route: "/adm-global-settings",
key: key++ key: key++
@@ -544,7 +544,7 @@ function initNavPanel() {
// LICENSE // LICENSE
sub.push({ sub.push({
title: t("HelpLicense"), title: "HelpLicense",
icon: "fa-ticket-alt", icon: "fa-ticket-alt",
route: "/adm-license", route: "/adm-license",
key: key++ key: key++
@@ -552,7 +552,7 @@ function initNavPanel() {
// USERS // USERS
sub.push({ sub.push({
title: t("UserList"), title: "UserList",
icon: "fa-users", icon: "fa-users",
route: "/adm-users", route: "/adm-users",
key: key++ key: key++
@@ -562,7 +562,7 @@ function initNavPanel() {
//TRANSLATION //TRANSLATION
sub.push({ sub.push({
title: t("TranslationList"), title: "TranslationList",
icon: "fa-language", icon: "fa-language",
route: "/adm-translations", route: "/adm-translations",
key: key++ key: key++
@@ -570,7 +570,7 @@ function initNavPanel() {
//REPORT TEMPLATES //REPORT TEMPLATES
sub.push({ sub.push({
title: t("ReportList"), title: "ReportList",
icon: "fa-th-list", icon: "fa-th-list",
route: "/adm-report-templates", route: "/adm-report-templates",
key: key++ key: key++
@@ -578,7 +578,7 @@ function initNavPanel() {
//FILES IN DATABASE //FILES IN DATABASE
sub.push({ sub.push({
title: t("Attachments"), title: "Attachments",
icon: "fa-folder", icon: "fa-folder",
route: "/adm-attachments", route: "/adm-attachments",
key: key++ key: key++
@@ -586,7 +586,7 @@ function initNavPanel() {
//EVENT LOG / HISTORY //EVENT LOG / HISTORY
sub.push({ sub.push({
title: t("History"), title: "History",
icon: "fa-history", icon: "fa-history",
route: "/adm-history", route: "/adm-history",
key: key++ key: key++
@@ -594,7 +594,7 @@ function initNavPanel() {
//KPI / METRICS / CHARTS AND STUFF //KPI / METRICS / CHARTS AND STUFF
sub.push({ sub.push({
title: t("Statistics"), title: "Statistics",
icon: "fa-chart-line", icon: "fa-chart-line",
route: "/adm-statistics", route: "/adm-statistics",
key: key++ key: key++
@@ -602,7 +602,7 @@ function initNavPanel() {
// ** ADMINISTRATION (TOP) // ** ADMINISTRATION (TOP)
addNavItem( addNavItem(
t("Administration"), "Administration",
"fa-user-tie", "fa-user-tie",
undefined, undefined,
sub, sub,
@@ -618,7 +618,7 @@ function initNavPanel() {
// ARCHIVE // ARCHIVE
sub.push({ sub.push({
title: t("Backup"), title: "Backup",
icon: "fa-file-archive", icon: "fa-file-archive",
route: "/ops-backup", route: "/ops-backup",
key: key++ key: key++
@@ -632,7 +632,7 @@ function initNavPanel() {
// SERVER STATE // SERVER STATE
sub.push({ sub.push({
title: t("ServerState"), title: "ServerState",
icon: "fa-door-open", icon: "fa-door-open",
route: "/ops-server-state", route: "/ops-server-state",
key: key++ key: key++
@@ -640,7 +640,7 @@ function initNavPanel() {
// JOBS // JOBS
sub.push({ sub.push({
title: t("ServerJobs"), title: "ServerJobs",
icon: "fa-robot", icon: "fa-robot",
route: "/ops-jobs", route: "/ops-jobs",
key: key++ key: key++
@@ -648,7 +648,7 @@ function initNavPanel() {
// LOGS // LOGS
sub.push({ sub.push({
title: t("ServerLog"), title: "ServerLog",
icon: "fa-history", icon: "fa-history",
route: "/ops-log", route: "/ops-log",
key: key++ key: key++
@@ -656,7 +656,7 @@ function initNavPanel() {
//METRICS //METRICS
sub.push({ sub.push({
title: t("ServerMetrics"), title: "ServerMetrics",
icon: "fa-file-medical-alt", icon: "fa-file-medical-alt",
route: "/ops-metrics", route: "/ops-metrics",
key: key++ key: key++
@@ -664,7 +664,7 @@ function initNavPanel() {
//PROFILE //PROFILE
sub.push({ sub.push({
title: t("ServerProfiler"), title: "ServerProfiler",
icon: "fa-binoculars", icon: "fa-binoculars",
route: "/ops-profile", route: "/ops-profile",
key: key++ key: key++
@@ -672,21 +672,14 @@ function initNavPanel() {
//NOTIFICATION CONFIG AND HISTORY //NOTIFICATION CONFIG AND HISTORY
sub.push({ sub.push({
title: t("NotificationSettings"), title: "NotificationSettings",
icon: "fa-bullhorn", icon: "fa-bullhorn",
route: "/ops-notification-settings", route: "/ops-notification-settings",
key: key++ key: key++
}); });
// ** OPERATIONS (TOP) // ** OPERATIONS (TOP)
addNavItem( addNavItem("Operations", "fa-server", undefined, sub, key++, "operations");
t("Operations"),
"fa-server",
undefined,
sub,
key++,
"operations"
);
} }
//**** WIDGETS (TOP GROUP) //**** WIDGETS (TOP GROUP)
@@ -698,7 +691,7 @@ function initNavPanel() {
role.InventoryLimited role.InventoryLimited
]) ])
) { ) {
addNavItem(t("WidgetList"), "fa-vial", "/widgets", [], key++, "widgets"); addNavItem("WidgetList", "fa-vial", "/widgets", [], key++, "widgets");
} }
//****************** CUSTOMER USER / HEAD OFFICE USER UI //****************** CUSTOMER USER / HEAD OFFICE USER UI
@@ -716,7 +709,7 @@ function initNavPanel() {
//CSR LIST subitem //CSR LIST subitem
sub.push({ sub.push({
title: t("CustomerServiceRequestList"), title: "CustomerServiceRequestList",
icon: "fa-child", icon: "fa-child",
route: "/customer-csr-list", route: "/customer-csr-list",
key: key++ key: key++
@@ -724,7 +717,7 @@ function initNavPanel() {
//WORKORDERS subitem //WORKORDERS subitem
sub.push({ sub.push({
title: t("WorkOrderList"), title: "WorkOrderList",
icon: "fa-tools", icon: "fa-tools",
route: "/customer-workorders", route: "/customer-workorders",
key: key++ key: key++
@@ -732,13 +725,13 @@ function initNavPanel() {
//** CUSTOMER LOGIN HOME (TOP) //** CUSTOMER LOGIN HOME (TOP)
addNavItem(t("Home"), "fa-home", undefined, sub, key++, "homecustomer"); addNavItem("Home", "fa-home", undefined, sub, key++, "homecustomer");
} }
//*** EVALUATION active trial license should always go to evaluation as home page //*** EVALUATION active trial license should always go to evaluation as home page
if (licenseState == 1) { if (licenseState == 1) {
addNavItem( addNavItem(
t("Evaluate"), "Evaluate",
"fa-rocket", "fa-rocket",
"/ay-evaluate", "/ay-evaluate",
[], [],
@@ -750,7 +743,7 @@ function initNavPanel() {
} }
//*** LOGOUT - all users //*** LOGOUT - all users
addNavItem(t("Logout"), "fa-sign-out-alt", "/login", [], key++, "logout"); addNavItem("Logout", "fa-sign-out-alt", "/login", [], key++, "logout");
} }
async function getUserOptions() { async function getUserOptions() {

View File

@@ -382,7 +382,7 @@ function generateMenu(vm) {
let menuOptions = { let menuOptions = {
isMain: true, isMain: true,
icon: "fa-user-cog", icon: "fa-user-cog",
title: vm.$ay.t("UserSettings"), title: "UserSettings",
helpUrl: "form-home-user-settings", helpUrl: "form-home-user-settings",
formData: { formData: {
ayaType: window.$gz.type.UserOptions ayaType: window.$gz.type.UserOptions
@@ -392,7 +392,7 @@ function generateMenu(vm) {
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: vm.$ay.t("Save"), title: "Save",
icon: "fa-save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
@@ -402,7 +402,7 @@ function generateMenu(vm) {
//change password and login //change password and login
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: vm.$ay.t("SetLoginPassword"), title: "SetLoginPassword",
icon: "fa-key", icon: "fa-key",
data: "home-password", data: "home-password",
key: "app:nav" key: "app:nav"