This commit is contained in:
@@ -308,7 +308,7 @@ export default {
|
|||||||
case window.$gz.type.ServerState:
|
case window.$gz.type.ServerState:
|
||||||
return "fa-door-open";
|
return "fa-door-open";
|
||||||
case window.$gz.type.License:
|
case window.$gz.type.License:
|
||||||
return "fa-ticket-alt";
|
return "$ayiTicket";
|
||||||
case window.$gz.type.LogFile:
|
case window.$gz.type.LogFile:
|
||||||
return "fa-glasses";
|
return "fa-glasses";
|
||||||
case window.$gz.type.PickListTemplate:
|
case window.$gz.type.PickListTemplate:
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ function initNavPanel() {
|
|||||||
//WORKORDERS subitem
|
//WORKORDERS subitem
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "WorkOrderList",
|
title: "WorkOrderList",
|
||||||
icon: "fa-tools",
|
icon: "$ayiTools",
|
||||||
route: "/customer-workorders",
|
route: "/customer-workorders",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -108,13 +108,12 @@ function initNavPanel() {
|
|||||||
) {
|
) {
|
||||||
addNavItem(
|
addNavItem(
|
||||||
"HelpLicense",
|
"HelpLicense",
|
||||||
"fa-ticket-alt",
|
"$ayiTicket",
|
||||||
"/adm-license",
|
"/adm-license",
|
||||||
[],
|
[],
|
||||||
key++,
|
key++,
|
||||||
"license"
|
"license"
|
||||||
);
|
);
|
||||||
//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;
|
||||||
}
|
}
|
||||||
@@ -142,7 +141,7 @@ function initNavPanel() {
|
|||||||
//KPI / METRICS / CHARTS AND STUFF APPROPRIATE TO ROLE
|
//KPI / METRICS / CHARTS AND STUFF APPROPRIATE TO ROLE
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "Dashboard",
|
title: "Dashboard",
|
||||||
icon: "fa-tachometer-alt",
|
icon: "$ayiTachometer",
|
||||||
route: "/home-dashboard",
|
route: "/home-dashboard",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -185,7 +184,7 @@ function initNavPanel() {
|
|||||||
//SCHEDULE (personal)
|
//SCHEDULE (personal)
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "Schedule",
|
title: "Schedule",
|
||||||
icon: "fa-calendar-day",
|
icon: "$ayiCalendarDay",
|
||||||
route: "/home-schedule",
|
route: "/home-schedule",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -193,7 +192,7 @@ function initNavPanel() {
|
|||||||
//MEMOS
|
//MEMOS
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "MemoList",
|
title: "MemoList",
|
||||||
icon: "fa-inbox",
|
icon: "$ayiInbox",
|
||||||
route: "/home-memos",
|
route: "/home-memos",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -201,7 +200,7 @@ function initNavPanel() {
|
|||||||
//REMINDERS (SCHEDULE MARKERS)
|
//REMINDERS (SCHEDULE MARKERS)
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "ReminderList",
|
title: "ReminderList",
|
||||||
icon: "fa-sticky-note",
|
icon: "$ayiStickyNote",
|
||||||
route: "/home-reminders",
|
route: "/home-reminders",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -214,23 +213,6 @@ function initNavPanel() {
|
|||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
|
|
||||||
//Moved these two into user settings
|
|
||||||
// //USER TRANSLATE
|
|
||||||
// sub.push({
|
|
||||||
// title: "Translation",
|
|
||||||
// icon: "fa-language",
|
|
||||||
// route: "/home-translation",
|
|
||||||
// key: key++
|
|
||||||
// });
|
|
||||||
|
|
||||||
// //SET LOGIN
|
|
||||||
// sub.push({
|
|
||||||
// title: "SetLoginPassword",
|
|
||||||
// icon: "fa-key",
|
|
||||||
// route: "/home-password",
|
|
||||||
// key: key++
|
|
||||||
// });
|
|
||||||
|
|
||||||
//USER NOTIFICATION SUBSCRIPTIONS
|
//USER NOTIFICATION SUBSCRIPTIONS
|
||||||
if (
|
if (
|
||||||
//all but subcontractors (arbitrary decision without any facts ;)
|
//all but subcontractors (arbitrary decision without any facts ;)
|
||||||
@@ -280,7 +262,7 @@ function initNavPanel() {
|
|||||||
//CUSTOMERS subitem
|
//CUSTOMERS subitem
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "CustomerList",
|
title: "CustomerList",
|
||||||
icon: "fa-address-card",
|
icon: "$ayiAddressCard",
|
||||||
route: "/cust-customers",
|
route: "/cust-customers",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -288,7 +270,7 @@ function initNavPanel() {
|
|||||||
//HEAD OFFICES subitem
|
//HEAD OFFICES subitem
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "HeadOfficeList",
|
title: "HeadOfficeList",
|
||||||
icon: "fa-sitemap",
|
icon: "$ayiSitemap",
|
||||||
route: "/cust-headoffices",
|
route: "/cust-headoffices",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -359,7 +341,7 @@ function initNavPanel() {
|
|||||||
) {
|
) {
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "WorkOrderList",
|
title: "WorkOrderList",
|
||||||
icon: "fa-tools",
|
icon: "$ayiTools",
|
||||||
route: "/svc-workorders",
|
route: "/svc-workorders",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -621,7 +603,7 @@ function initNavPanel() {
|
|||||||
// LICENSE
|
// LICENSE
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "HelpLicense",
|
title: "HelpLicense",
|
||||||
icon: "fa-ticket-alt",
|
icon: "$ayiTicket",
|
||||||
route: "/adm-license",
|
route: "/adm-license",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,10 +12,12 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|||||||
|
|
||||||
Vue.component("font-awesome-icon", FontAwesomeIcon); // Register component globally
|
Vue.component("font-awesome-icon", FontAwesomeIcon); // Register component globally
|
||||||
import {
|
import {
|
||||||
|
faAddressCard,
|
||||||
faBars,
|
faBars,
|
||||||
faBell,
|
faBell,
|
||||||
faBullhorn,
|
faBullhorn,
|
||||||
faCalendarCheck,
|
faCalendarCheck,
|
||||||
|
faCalendarDay,
|
||||||
faCaretDown,
|
faCaretDown,
|
||||||
faChevronDown,
|
faChevronDown,
|
||||||
faChild,
|
faChild,
|
||||||
@@ -24,13 +26,18 @@ import {
|
|||||||
faEyeSlash,
|
faEyeSlash,
|
||||||
faHistory,
|
faHistory,
|
||||||
faHome,
|
faHome,
|
||||||
|
faInbox,
|
||||||
faInfoCircle,
|
faInfoCircle,
|
||||||
faKey,
|
faKey,
|
||||||
faQuestionCircle,
|
faQuestionCircle,
|
||||||
faSearch,
|
faSearch,
|
||||||
faSignInAlt,
|
faSignInAlt,
|
||||||
faSignOutAlt,
|
faSignOutAlt,
|
||||||
|
faSitemap,
|
||||||
faSlidersH,
|
faSlidersH,
|
||||||
|
faStickyNote,
|
||||||
|
faTachometerAlt,
|
||||||
|
faTicketAlt,
|
||||||
faTools,
|
faTools,
|
||||||
faUser,
|
faUser,
|
||||||
faUserCog
|
faUserCog
|
||||||
@@ -39,10 +46,12 @@ import {
|
|||||||
Vue.component("font-awesome-icon", FontAwesomeIcon);
|
Vue.component("font-awesome-icon", FontAwesomeIcon);
|
||||||
|
|
||||||
library.add(
|
library.add(
|
||||||
|
faAddressCard,
|
||||||
faBars,
|
faBars,
|
||||||
faBell,
|
faBell,
|
||||||
faBullhorn,
|
faBullhorn,
|
||||||
faCalendarCheck,
|
faCalendarCheck,
|
||||||
|
faCalendarDay,
|
||||||
faCaretDown,
|
faCaretDown,
|
||||||
faChevronDown,
|
faChevronDown,
|
||||||
faChild,
|
faChild,
|
||||||
@@ -51,19 +60,30 @@ library.add(
|
|||||||
faEyeSlash,
|
faEyeSlash,
|
||||||
faHistory,
|
faHistory,
|
||||||
faHome,
|
faHome,
|
||||||
|
faInbox,
|
||||||
faInfoCircle,
|
faInfoCircle,
|
||||||
faKey,
|
faKey,
|
||||||
faQuestionCircle,
|
faQuestionCircle,
|
||||||
faSearch,
|
faSearch,
|
||||||
faSignInAlt,
|
faSignInAlt,
|
||||||
faSignOutAlt,
|
faSignOutAlt,
|
||||||
|
faSitemap,
|
||||||
faSlidersH,
|
faSlidersH,
|
||||||
|
faStickyNote,
|
||||||
|
faTachometerAlt,
|
||||||
|
faTicketAlt,
|
||||||
faTools,
|
faTools,
|
||||||
faUser,
|
faUser,
|
||||||
faUserCog
|
faUserCog
|
||||||
);
|
);
|
||||||
|
|
||||||
const CUSTOM_ICONS = {
|
const CUSTOM_ICONS = {
|
||||||
|
ayiAddressCard: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "address-card"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiBell: {
|
ayiBell: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
@@ -82,6 +102,12 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "calendar-check"]
|
icon: ["fas", "calendar-check"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiCalendarDay: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "calendar-day"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiChild: {
|
ayiChild: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
@@ -124,6 +150,12 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "home"]
|
icon: ["fas", "home"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiInbox: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "inbox"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiInfoCircle: {
|
ayiInfoCircle: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
@@ -160,6 +192,30 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "sign-out-alt"]
|
icon: ["fas", "sign-out-alt"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiSitemap: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "sitemap"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ayiStickyNote: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "sticky-note"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ayiTachometer: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "tachometer-alt"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ayiTicket: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "ticket-alt"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiTools: {
|
ayiTools: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -543,7 +543,7 @@ function clickHandler(menuItem) {
|
|||||||
function generateMenu(vm) {
|
function generateMenu(vm) {
|
||||||
let menuOptions = {
|
let menuOptions = {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-ticket-alt",
|
icon: "$ayiTicket",
|
||||||
title: "HelpLicense",
|
title: "HelpLicense",
|
||||||
helpUrl: "form-adm-license",
|
helpUrl: "form-adm-license",
|
||||||
formData: {
|
formData: {
|
||||||
@@ -564,7 +564,7 @@ function generateMenu(vm) {
|
|||||||
//Trigger license check
|
//Trigger license check
|
||||||
menuOptions.menuItems.push({
|
menuOptions.menuItems.push({
|
||||||
title: "CheckForLicense",
|
title: "CheckForLicense",
|
||||||
icon: "fa-ticket-alt",
|
icon: "$ayiTicket",
|
||||||
key: FORM_KEY + ":fetch",
|
key: FORM_KEY + ":fetch",
|
||||||
vm: vm
|
vm: vm
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -429,7 +429,7 @@ function populateEventTypeList(vm) {
|
|||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
name: vm.$ay.t("EventLicenseFetch"),
|
name: vm.$ay.t("EventLicenseFetch"),
|
||||||
icon: "fa-ticket-alt"
|
icon: "$ayiTicket"
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
name: vm.$ay.t("EventLicenseTrialRequest"),
|
name: vm.$ay.t("EventLicenseTrialRequest"),
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-address-card",
|
icon: "$ayiAddressCard",
|
||||||
title: "CustomerList",
|
title: "CustomerList",
|
||||||
helpUrl: "form-cust-customers"
|
helpUrl: "form-cust-customers"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-sitemap",
|
icon: "$ayiSitemap",
|
||||||
title: "HeadOfficeList",
|
title: "HeadOfficeList",
|
||||||
helpUrl: "form-cust-headoffices"
|
helpUrl: "form-cust-headoffices"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-tools",
|
icon: "$ayiTools",
|
||||||
title: "WorkOrderList",
|
title: "WorkOrderList",
|
||||||
helpUrl: "form-customer-workorders"
|
helpUrl: "form-customer-workorders"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-tachometer-alt",
|
icon: "$ayiTachometer",
|
||||||
title: "Dashboard",
|
title: "Dashboard",
|
||||||
helpUrl: "form-home-dashboard"
|
helpUrl: "form-home-dashboard"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-inbox",
|
icon: "$ayiInbox",
|
||||||
title: "MemoList",
|
title: "MemoList",
|
||||||
helpUrl: "form-home-memos"
|
helpUrl: "form-home-memos"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-sticky-note",
|
icon: "$ayiStickyNote",
|
||||||
title: "ReminderList",
|
title: "ReminderList",
|
||||||
helpUrl: "form-home-reminders"
|
helpUrl: "form-home-reminders"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-calendar-day",
|
icon: "$ayiCalendarDay",
|
||||||
title: "Schedule",
|
title: "Schedule",
|
||||||
helpUrl: "form-home-schedule"
|
helpUrl: "form-home-schedule"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-tools",
|
icon: "$ayiTools",
|
||||||
title: "WorkOrderList",
|
title: "WorkOrderList",
|
||||||
helpUrl: "form-svc-workorders"
|
helpUrl: "form-svc-workorders"
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user