This commit is contained in:
2020-10-05 23:13:42 +00:00
parent 6debf951e2
commit f896c6ef65
13 changed files with 78 additions and 40 deletions

View File

@@ -308,7 +308,7 @@ export default {
case window.$gz.type.ServerState:
return "fa-door-open";
case window.$gz.type.License:
return "fa-ticket-alt";
return "$ayiTicket";
case window.$gz.type.LogFile:
return "fa-glasses";
case window.$gz.type.PickListTemplate:

View File

@@ -72,7 +72,7 @@ function initNavPanel() {
//WORKORDERS subitem
sub.push({
title: "WorkOrderList",
icon: "fa-tools",
icon: "$ayiTools",
route: "/customer-workorders",
key: key++
});
@@ -108,13 +108,12 @@ function initNavPanel() {
) {
addNavItem(
"HelpLicense",
"fa-ticket-alt",
"$ayiTicket",
"/adm-license",
[],
key++,
"license"
);
//addNavItem("Logout", "fa-sign-out-alt", "/login", [], key++, "logout");
window.$gz.store.commit("setHomePage", "/adm-license");
return;
}
@@ -142,7 +141,7 @@ function initNavPanel() {
//KPI / METRICS / CHARTS AND STUFF APPROPRIATE TO ROLE
sub.push({
title: "Dashboard",
icon: "fa-tachometer-alt",
icon: "$ayiTachometer",
route: "/home-dashboard",
key: key++
});
@@ -185,7 +184,7 @@ function initNavPanel() {
//SCHEDULE (personal)
sub.push({
title: "Schedule",
icon: "fa-calendar-day",
icon: "$ayiCalendarDay",
route: "/home-schedule",
key: key++
});
@@ -193,7 +192,7 @@ function initNavPanel() {
//MEMOS
sub.push({
title: "MemoList",
icon: "fa-inbox",
icon: "$ayiInbox",
route: "/home-memos",
key: key++
});
@@ -201,7 +200,7 @@ function initNavPanel() {
//REMINDERS (SCHEDULE MARKERS)
sub.push({
title: "ReminderList",
icon: "fa-sticky-note",
icon: "$ayiStickyNote",
route: "/home-reminders",
key: key++
});
@@ -214,23 +213,6 @@ function initNavPanel() {
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
if (
//all but subcontractors (arbitrary decision without any facts ;)
@@ -280,7 +262,7 @@ function initNavPanel() {
//CUSTOMERS subitem
sub.push({
title: "CustomerList",
icon: "fa-address-card",
icon: "$ayiAddressCard",
route: "/cust-customers",
key: key++
});
@@ -288,7 +270,7 @@ function initNavPanel() {
//HEAD OFFICES subitem
sub.push({
title: "HeadOfficeList",
icon: "fa-sitemap",
icon: "$ayiSitemap",
route: "/cust-headoffices",
key: key++
});
@@ -359,7 +341,7 @@ function initNavPanel() {
) {
sub.push({
title: "WorkOrderList",
icon: "fa-tools",
icon: "$ayiTools",
route: "/svc-workorders",
key: key++
});
@@ -621,7 +603,7 @@ function initNavPanel() {
// LICENSE
sub.push({
title: "HelpLicense",
icon: "fa-ticket-alt",
icon: "$ayiTicket",
route: "/adm-license",
key: key++
});

View File

@@ -12,10 +12,12 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
Vue.component("font-awesome-icon", FontAwesomeIcon); // Register component globally
import {
faAddressCard,
faBars,
faBell,
faBullhorn,
faCalendarCheck,
faCalendarDay,
faCaretDown,
faChevronDown,
faChild,
@@ -24,13 +26,18 @@ import {
faEyeSlash,
faHistory,
faHome,
faInbox,
faInfoCircle,
faKey,
faQuestionCircle,
faSearch,
faSignInAlt,
faSignOutAlt,
faSitemap,
faSlidersH,
faStickyNote,
faTachometerAlt,
faTicketAlt,
faTools,
faUser,
faUserCog
@@ -39,10 +46,12 @@ import {
Vue.component("font-awesome-icon", FontAwesomeIcon);
library.add(
faAddressCard,
faBars,
faBell,
faBullhorn,
faCalendarCheck,
faCalendarDay,
faCaretDown,
faChevronDown,
faChild,
@@ -51,19 +60,30 @@ library.add(
faEyeSlash,
faHistory,
faHome,
faInbox,
faInfoCircle,
faKey,
faQuestionCircle,
faSearch,
faSignInAlt,
faSignOutAlt,
faSitemap,
faSlidersH,
faStickyNote,
faTachometerAlt,
faTicketAlt,
faTools,
faUser,
faUserCog
);
const CUSTOM_ICONS = {
ayiAddressCard: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "address-card"]
}
},
ayiBell: {
component: FontAwesomeIcon,
props: {
@@ -82,6 +102,12 @@ const CUSTOM_ICONS = {
icon: ["fas", "calendar-check"]
}
},
ayiCalendarDay: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "calendar-day"]
}
},
ayiChild: {
component: FontAwesomeIcon,
props: {
@@ -124,6 +150,12 @@ const CUSTOM_ICONS = {
icon: ["fas", "home"]
}
},
ayiInbox: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "inbox"]
}
},
ayiInfoCircle: {
component: FontAwesomeIcon,
props: {
@@ -160,6 +192,30 @@ const CUSTOM_ICONS = {
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: {
component: FontAwesomeIcon,
props: {

View File

@@ -543,7 +543,7 @@ function clickHandler(menuItem) {
function generateMenu(vm) {
let menuOptions = {
isMain: true,
icon: "fa-ticket-alt",
icon: "$ayiTicket",
title: "HelpLicense",
helpUrl: "form-adm-license",
formData: {
@@ -564,7 +564,7 @@ function generateMenu(vm) {
//Trigger license check
menuOptions.menuItems.push({
title: "CheckForLicense",
icon: "fa-ticket-alt",
icon: "$ayiTicket",
key: FORM_KEY + ":fetch",
vm: vm
});

View File

@@ -429,7 +429,7 @@ function populateEventTypeList(vm) {
},
7: {
name: vm.$ay.t("EventLicenseFetch"),
icon: "fa-ticket-alt"
icon: "$ayiTicket"
},
8: {
name: vm.$ay.t("EventLicenseTrialRequest"),

View File

@@ -12,7 +12,7 @@ export default {
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "fa-address-card",
icon: "$ayiAddressCard",
title: "CustomerList",
helpUrl: "form-cust-customers"
});

View File

@@ -12,7 +12,7 @@ export default {
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "fa-sitemap",
icon: "$ayiSitemap",
title: "HeadOfficeList",
helpUrl: "form-cust-headoffices"
});

View File

@@ -12,7 +12,7 @@ export default {
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "fa-tools",
icon: "$ayiTools",
title: "WorkOrderList",
helpUrl: "form-customer-workorders"
});

View File

@@ -27,7 +27,7 @@ export default {
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "fa-tachometer-alt",
icon: "$ayiTachometer",
title: "Dashboard",
helpUrl: "form-home-dashboard"
});

View File

@@ -12,7 +12,7 @@ export default {
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "fa-inbox",
icon: "$ayiInbox",
title: "MemoList",
helpUrl: "form-home-memos"
});

View File

@@ -12,7 +12,7 @@ export default {
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "fa-sticky-note",
icon: "$ayiStickyNote",
title: "ReminderList",
helpUrl: "form-home-reminders"
});

View File

@@ -12,7 +12,7 @@ export default {
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "fa-calendar-day",
icon: "$ayiCalendarDay",
title: "Schedule",
helpUrl: "form-home-schedule"
});

View File

@@ -12,7 +12,7 @@ export default {
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "fa-tools",
icon: "$ayiTools",
title: "WorkOrderList",
helpUrl: "form-svc-workorders"
});