adding back fa- to icons so can more easily find them in code and removing helper function that added fa- automatically

This commit is contained in:
2020-03-30 20:50:50 +00:00
parent f355bd20a0
commit e055ae2049
58 changed files with 82 additions and 93 deletions

View File

@@ -11,9 +11,6 @@ export default {
// called from App.vue // called from App.vue
handleMenuChange(vm, ctx) { handleMenuChange(vm, ctx) {
vm.appBar.isMain = ctx.isMain; vm.appBar.isMain = ctx.isMain;
if (ctx.icon && !ctx.icon.startsWith("fa-")) {
ctx.icon = "fa-" + ctx.icon;
}
vm.appBar.icon = ctx.icon; vm.appBar.icon = ctx.icon;
vm.appBar.title = ctx.title; vm.appBar.title = ctx.title;
@@ -56,14 +53,14 @@ export default {
if (isCoreBizObject) { if (isCoreBizObject) {
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("Attachments"), title: window.$gz.translation.get("Attachments"),
icon: "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: window.$gz.translation.get("WikiPage"),
icon: "feather", icon: "fa-feather",
key: "app:wiki", key: "app:wiki",
data: { ayaType: formAyaType, recordId: formRecordId } data: { ayaType: formAyaType, recordId: formRecordId }
}); });
@@ -73,7 +70,7 @@ export default {
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("Review"), title: window.$gz.translation.get("Review"),
icon: "calendar-check", icon: "fa-calendar-check",
key: "app:review", key: "app:review",
data: { ayaType: formAyaType, recordId: formRecordId } data: { ayaType: formAyaType, recordId: formRecordId }
}); });
@@ -82,7 +79,7 @@ export default {
//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: window.$gz.translation.get("History"),
icon: "history", icon: "fa-history",
key: "app:history", key: "app:history",
data: { ayaType: formAyaType, recordId: formRecordId } data: { ayaType: formAyaType, recordId: formRecordId }
}); });
@@ -107,7 +104,7 @@ export default {
//customize //customize
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("Customize"), title: window.$gz.translation.get("Customize"),
icon: "sliders-h", icon: "fa-sliders-h",
data: ctx.formData.formCustomTemplateKey, data: ctx.formData.formCustomTemplateKey,
key: "app:customize" key: "app:customize"
}); });
@@ -129,7 +126,7 @@ export default {
//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: window.$gz.translation.get("Search"),
icon: "search", icon: "fa-search",
key: "app:search", key: "app:search",
data: formAyaType data: formAyaType
}); });
@@ -138,7 +135,7 @@ export default {
//HELP //HELP
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("MenuHelp"), title: window.$gz.translation.get("MenuHelp"),
icon: "question-circle", icon: "fa-question-circle",
key: "app:help", key: "app:help",
data: vm.appBar.helpUrl data: vm.appBar.helpUrl
}); });
@@ -147,7 +144,7 @@ export default {
if (ctx.helpUrl != "form-ay-about") { if (ctx.helpUrl != "form-ay-about") {
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("HelpAboutAyaNova"), title: window.$gz.translation.get("HelpAboutAyaNova"),
icon: "info-circle", icon: "fa-info-circle",
key: "app:nav:abt", key: "app:nav:abt",
data: "ay-about" data: "ay-about"
}); });
@@ -156,7 +153,7 @@ export default {
//LOGOUT //LOGOUT
vm.appBar.menuItems.push({ vm.appBar.menuItems.push({
title: window.$gz.translation.get("Logout"), title: window.$gz.translation.get("Logout"),
icon: "sign-out-alt", icon: "fa-sign-out-alt",
key: "app:logout" key: "app:logout"
}); });
}, },

View File

@@ -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: "calculator", icon: "fa-calculator",
title: window.$gz.translation.get("Accounting"), title: window.$gz.translation.get("Accounting"),
helpUrl: "form-acc-accounting" helpUrl: "form-acc-accounting"
}); });

View File

@@ -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: "folder", icon: "fa-folder",
title: window.$gz.translation.get("Attachments"), title: window.$gz.translation.get("Attachments"),
helpUrl: "form-adm-attachments" helpUrl: "form-adm-attachments"
}); });

View File

@@ -419,7 +419,7 @@ function generateMenu(vm) {
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Save"), title: window.$gz.translation.get("Save"),
icon: "save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
vm: vm vm: vm
@@ -428,7 +428,7 @@ function generateMenu(vm) {
if (vm.rights.delete) { if (vm.rights.delete) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("ResetToDefault"), title: window.$gz.translation.get("ResetToDefault"),
icon: "undo", icon: "fa-undo",
surface: false, surface: false,
key: FORM_KEY + ":delete", key: FORM_KEY + ":delete",
vm: vm vm: vm

View File

@@ -16,7 +16,7 @@ export default {
beforeCreate() { beforeCreate() {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "cogs", icon: "fa-cogs",
title: window.$gz.translation.get("AdministrationGlobalSettings"), title: window.$gz.translation.get("AdministrationGlobalSettings"),
helpUrl: "form-adm-global-settings" helpUrl: "form-adm-global-settings"
}); });

View File

@@ -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: "history", icon: "fa-history",
title: window.$gz.translation.get("History"), title: window.$gz.translation.get("History"),
helpUrl: "form-adm-history" helpUrl: "form-adm-history"
}); });

View File

@@ -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: "ticket-alt", icon: "fa-ticket-alt",
title: window.$gz.translation.get("HelpLicense"), title: window.$gz.translation.get("HelpLicense"),
helpUrl: "form-adm-license" helpUrl: "form-adm-license"
}); });

View File

@@ -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: "th-list", icon: "fa-th-list",
title: window.$gz.translation.get("ReportList"), title: window.$gz.translation.get("ReportList"),
helpUrl: "form-adm-report-templates" helpUrl: "form-adm-report-templates"
}); });

View File

@@ -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: "chart-line", icon: "fa-chart-line",
title: window.$gz.translation.get("Statistics"), title: window.$gz.translation.get("Statistics"),
helpUrl: "form-adm-statistics" helpUrl: "form-adm-statistics"
}); });

View File

@@ -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: "language", icon: "fa-language",
title: window.$gz.translation.get("Translation"), title: window.$gz.translation.get("Translation"),
helpUrl: "form-adm-translation" helpUrl: "form-adm-translation"
}); });

View File

@@ -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: "users", icon: "fa-users",
title: window.$gz.translation.get("UserList"), title: window.$gz.translation.get("UserList"),
helpUrl: "form-adm-users" helpUrl: "form-adm-users"
}); });

View File

@@ -190,14 +190,14 @@ function generateMenu(vm) {
menuItems: [ menuItems: [
{ {
title: window.$gz.translation.get("Copy"), title: window.$gz.translation.get("Copy"),
icon: "copy", icon: "fa-copy",
surface: true, surface: true,
key: "about:copysupportinfo", key: "about:copysupportinfo",
vm: vm vm: vm
}, },
{ {
title: window.$gz.translation.get("Log"), title: window.$gz.translation.get("Log"),
icon: "glasses", icon: "fa-glasses",
surface: true, surface: true,
key: "app:nav:log", key: "app:nav:log",
data: "ay-log" data: "ay-log"

View File

@@ -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: "paperclip", icon: "fa-paperclip",
title: window.$gz.translation.get("Attachments"), title: window.$gz.translation.get("Attachments"),
helpUrl: "form-ay-attachments" helpUrl: "form-ay-attachments"
}); });

View File

@@ -287,7 +287,7 @@ function generateMenu(vm) {
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Save"), title: window.$gz.translation.get("Save"),
icon: "save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
vm: vm vm: vm
@@ -298,7 +298,7 @@ function generateMenu(vm) {
//plus it's related to this form and people think Customize for the whole shebang //plus it's related to this form and people think Customize for the whole shebang
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Translation"), title: window.$gz.translation.get("Translation"),
icon: "language", icon: "fa-language",
data: "adm-translation", data: "adm-translation",
key: "app:nav" key: "app:nav"
}); });

View File

@@ -927,7 +927,7 @@ function clickHandler(menuItem) {
function generateMenu(vm) { function generateMenu(vm) {
var menuOptions = { var menuOptions = {
isMain: false, isMain: false,
icon: "filter", icon: "fa-filter",
title: window.$gz.translation.get("DataListView"), title: window.$gz.translation.get("DataListView"),
helpUrl: "form-ay-data-list-view", helpUrl: "form-ay-data-list-view",
formData: { formData: {
@@ -940,7 +940,7 @@ function generateMenu(vm) {
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Save"), title: window.$gz.translation.get("Save"),
icon: "save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
vm: vm vm: vm
@@ -949,7 +949,7 @@ function generateMenu(vm) {
if (vm.rights.delete) { if (vm.rights.delete) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Delete"), title: window.$gz.translation.get("Delete"),
icon: "trash-alt", icon: "fa-trash-alt",
surface: true, surface: true,
key: FORM_KEY + ":delete", key: FORM_KEY + ":delete",
vm: vm vm: vm
@@ -958,7 +958,7 @@ function generateMenu(vm) {
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Duplicate"), title: window.$gz.translation.get("Duplicate"),
icon: "clone", icon: "fa-clone",
key: FORM_KEY + ":duplicate", key: FORM_KEY + ":duplicate",
vm: vm vm: vm
}); });

View File

@@ -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: "history", icon: "fa-history",
title: window.$gz.translation.get("History"), title: window.$gz.translation.get("History"),
helpUrl: "form-ay-history" helpUrl: "form-ay-history"
}); });

View File

@@ -29,15 +29,7 @@ export default {
title: window.$gz.translation.get("Log"), title: window.$gz.translation.get("Log"),
helpUrl: "form-ay-log", helpUrl: "form-ay-log",
menuItems: [ menuItems: []
// {
// title: window.$gz.translation.get("Log"),
// icon: "glasses",
// surface: true,
// key: "app:nav:log",
// data: "log"
// }
]
}); });
var outText = ""; var outText = "";

View File

@@ -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: "calendar-check", icon: "fa-calendar-check",
title: window.$gz.translation.get("Review"), title: window.$gz.translation.get("Review"),
helpUrl: "form-ay-review" helpUrl: "form-ay-review"
}); });

View File

@@ -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: "feather", icon: "fa-feather",
title: window.$gz.translation.get("WikiPage"), title: window.$gz.translation.get("WikiPage"),
helpUrl: "form-ay-wiki" helpUrl: "form-ay-wiki"
}); });

View File

@@ -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: "address-card", icon: "fa-address-card",
title: window.$gz.translation.get("ClientList"), title: window.$gz.translation.get("ClientList"),
helpUrl: "form-cust-customers" helpUrl: "form-cust-customers"
}); });

View File

@@ -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: "sitemap", icon: "fa-sitemap",
title: window.$gz.translation.get("HeadOfficeList"), title: window.$gz.translation.get("HeadOfficeList"),
helpUrl: "form-cust-headoffices" helpUrl: "form-cust-headoffices"
}); });

View File

@@ -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: "child", icon: "fa-child",
title: window.$gz.translation.get("ClientServiceRequestList"), title: window.$gz.translation.get("ClientServiceRequestList"),
helpUrl: "form-customer-csr-list" helpUrl: "form-customer-csr-list"
}); });

View File

@@ -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: "tools", icon: "fa-tools",
title: window.$gz.translation.get("WorkorderServiceList"), title: window.$gz.translation.get("WorkorderServiceList"),
helpUrl: "form-customer-workorders" helpUrl: "form-customer-workorders"
}); });

View File

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

View File

@@ -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: "inbox", icon: "fa-inbox",
title: window.$gz.translation.get("MemoList"), title: window.$gz.translation.get("MemoList"),
helpUrl: "form-home-memos" helpUrl: "form-home-memos"
}); });

View File

@@ -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: "bullhorn", icon: "fa-bullhorn",
title: window.$gz.translation.get("NotifySubscriptionList"), title: window.$gz.translation.get("NotifySubscriptionList"),
helpUrl: "form-home-notify-subscriptions" helpUrl: "form-home-notify-subscriptions"
}); });

View File

@@ -269,7 +269,7 @@ function clickHandler(menuItem) {
function generateMenu(vm) { function generateMenu(vm) {
var menuOptions = { var menuOptions = {
isMain: true, isMain: true,
icon: "key", icon: "fa-key",
title: window.$gz.translation.get("SetLoginPassword"), title: window.$gz.translation.get("SetLoginPassword"),
helpUrl: "form-home-password", helpUrl: "form-home-password",
menuItems: [] menuItems: []
@@ -278,7 +278,7 @@ function generateMenu(vm) {
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Save"), title: window.$gz.translation.get("Save"),
icon: "save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
vm: vm vm: vm

View File

@@ -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: "sticky-note", icon: "fa-sticky-note",
title: window.$gz.translation.get("ReminderList"), title: window.$gz.translation.get("ReminderList"),
helpUrl: "form-home-reminders" helpUrl: "form-home-reminders"
}); });

View File

@@ -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: "calendar-day", icon: "fa-calendar-day",
title: window.$gz.translation.get("Schedule"), title: window.$gz.translation.get("Schedule"),
helpUrl: "form-home-schedule" helpUrl: "form-home-schedule"
}); });

View File

@@ -23,7 +23,7 @@ export default {
beforeCreate() { beforeCreate() {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "search", icon: "fa-search",
title: window.$gz.translation.get("Search"), title: window.$gz.translation.get("Search"),
helpUrl: "form-home-search" helpUrl: "form-home-search"
}); });

View File

@@ -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: "language", icon: "fa-language",
title: window.$gz.translation.get("Translation"), title: window.$gz.translation.get("Translation"),
helpUrl: "form-home-translation" helpUrl: "form-home-translation"
}); });

View File

@@ -383,7 +383,7 @@ function clickHandler(menuItem) {
function generateMenu(vm) { function generateMenu(vm) {
var menuOptions = { var menuOptions = {
isMain: true, isMain: true,
icon: "user-cog", icon: "fa-user-cog",
title: window.$gz.translation.get("UserSettings"), title: window.$gz.translation.get("UserSettings"),
helpUrl: "form-home-user-settings", helpUrl: "form-home-user-settings",
formData: { formData: {
@@ -395,7 +395,7 @@ function generateMenu(vm) {
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Save"), title: window.$gz.translation.get("Save"),
icon: "save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
vm: vm vm: vm
@@ -405,7 +405,7 @@ function generateMenu(vm) {
//change password and login //change password and login
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("SetLoginPassword"), title: window.$gz.translation.get("SetLoginPassword"),
icon: "key", icon: "fa-key",
data: "home-password", data: "home-password",
key: "app:nav" key: "app:nav"
}); });

View File

@@ -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: "dolly", icon: "fa-dolly",
title: window.$gz.translation.get("InventoryPartInventoryAdjustments"), title: window.$gz.translation.get("InventoryPartInventoryAdjustments"),
helpUrl: "form-inv-adjustments" helpUrl: "form-inv-adjustments"
}); });

View File

@@ -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: "pallet", icon: "fa-pallet",
title: window.$gz.translation.get("PartByWarehouseInventoryList"), title: window.$gz.translation.get("PartByWarehouseInventoryList"),
helpUrl: "form-inv-part-inventory" helpUrl: "form-inv-part-inventory"
}); });

View File

@@ -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: "paper-plane", icon: "fa-paper-plane",
title: window.$gz.translation.get("WorkorderItemPartRequestList"), title: window.$gz.translation.get("WorkorderItemPartRequestList"),
helpUrl: "form-inv-part-requests" helpUrl: "form-inv-part-requests"
}); });

View File

@@ -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: "boxes", icon: "fa-boxes",
title: window.$gz.translation.get("PartList"), title: window.$gz.translation.get("PartList"),
helpUrl: "form-inv-parts" helpUrl: "form-inv-parts"
}); });

View File

@@ -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: "dolly-flatbed", icon: "fa-dolly-flatbed",
title: window.$gz.translation.get("InventoryPurchaseOrderReceipts"), title: window.$gz.translation.get("InventoryPurchaseOrderReceipts"),
helpUrl: "form-inv-purchase-order-receipts" helpUrl: "form-inv-purchase-order-receipts"
}); });

View File

@@ -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: "shipping-fast", icon: "fa-shipping-fast",
title: window.$gz.translation.get("InventoryPurchaseOrders"), title: window.$gz.translation.get("InventoryPurchaseOrders"),
helpUrl: "form-inv-purchase-orders" helpUrl: "form-inv-purchase-orders"
}); });

View File

@@ -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: "file-archive", icon: "fa-file-archive",
title: window.$gz.translation.get("Backup"), title: window.$gz.translation.get("Backup"),
helpUrl: "form-ops-backup" helpUrl: "form-ops-backup"
}); });

View File

@@ -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: "robot", icon: "fa-robot",
title: window.$gz.translation.get("ServerJobs"), title: window.$gz.translation.get("ServerJobs"),
helpUrl: "form-ops-jobs" helpUrl: "form-ops-jobs"
}); });

View File

@@ -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: "history", icon: "fa-history",
title: window.$gz.translation.get("ServerLog"), title: window.$gz.translation.get("ServerLog"),
helpUrl: "form-ops-log" helpUrl: "form-ops-log"
}); });

View File

@@ -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: "file-medical-alt", icon: "fa-file-medical-alt",
title: window.$gz.translation.get("ServerMetrics"), title: window.$gz.translation.get("ServerMetrics"),
helpUrl: "form-ops-metrics" helpUrl: "form-ops-metrics"
}); });

View File

@@ -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: "bullhorn", icon: "fa-bullhorn",
title: window.$gz.translation.get("NotificationSettings"), title: window.$gz.translation.get("NotificationSettings"),
helpUrl: "form-ops-notification-settings" helpUrl: "form-ops-notification-settings"
}); });

View File

@@ -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: "file-contract", icon: "fa-file-contract",
title: window.$gz.translation.get("ContractList"), title: window.$gz.translation.get("ContractList"),
helpUrl: "form-svc-contracts" helpUrl: "form-svc-contracts"
}); });

View File

@@ -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: "child", icon: "fa-child",
title: window.$gz.translation.get("ClientServiceRequestList"), title: window.$gz.translation.get("ClientServiceRequestList"),
helpUrl: "form-svc-csr-list" helpUrl: "form-svc-csr-list"
}); });

View File

@@ -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: "plug", icon: "fa-plug",
title: window.$gz.translation.get("LoanItemList"), title: window.$gz.translation.get("LoanItemList"),
helpUrl: "form-svc-loaners" helpUrl: "form-svc-loaners"
}); });

View File

@@ -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: "business-time", icon: "fa-business-time",
title: window.$gz.translation.get("WorkorderPreventiveMaintenanceList"), title: window.$gz.translation.get("WorkorderPreventiveMaintenanceList"),
helpUrl: "form-svc-pm-list" helpUrl: "form-svc-pm-list"
}); });

View File

@@ -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: "stamp", icon: "fa-stamp",
title: window.$gz.translation.get( title: window.$gz.translation.get(
"WorkorderPreventiveMaintenanceTemplate" "WorkorderPreventiveMaintenanceTemplate"
), ),

View File

@@ -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: "stamp", icon: "fa-stamp",
title: window.$gz.translation.get("WorkorderQuoteTemplate"), title: window.$gz.translation.get("WorkorderQuoteTemplate"),
helpUrl: "form-svc-quote-templates" helpUrl: "form-svc-quote-templates"
}); });

View File

@@ -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: "edit", icon: "fa-edit",
title: window.$gz.translation.get("WorkorderQuoteList"), title: window.$gz.translation.get("WorkorderQuoteList"),
helpUrl: "form-svc-quotes" helpUrl: "form-svc-quotes"
}); });

View File

@@ -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: "calendar-alt", icon: "fa-calendar-alt",
title: window.$gz.translation.get("Schedule"), title: window.$gz.translation.get("Schedule"),
helpUrl: "form-svc-schedule" helpUrl: "form-svc-schedule"
}); });

View File

@@ -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: "dice-d20", icon: "fa-dice-d20",
title: window.$gz.translation.get("UnitModels"), title: window.$gz.translation.get("UnitModels"),
helpUrl: "form-svc-unit-models" helpUrl: "form-svc-unit-models"
}); });

View File

@@ -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: "fan", icon: "fa-fan",
title: window.$gz.translation.get("UnitList"), title: window.$gz.translation.get("UnitList"),
helpUrl: "form-svc-units" helpUrl: "form-svc-units"
}); });

View File

@@ -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: "stamp", icon: "fa-stamp",
title: window.$gz.translation.get("WorkorderServiceTemplate"), title: window.$gz.translation.get("WorkorderServiceTemplate"),
helpUrl: "form-svc-workorder-templates" helpUrl: "form-svc-workorder-templates"
}); });

View File

@@ -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: "tools", icon: "fa-tools",
title: window.$gz.translation.get("WorkorderServiceList"), title: window.$gz.translation.get("WorkorderServiceList"),
helpUrl: "form-svc-workorders" helpUrl: "form-svc-workorders"
}); });

View File

@@ -119,7 +119,7 @@ export default {
beforeCreate() { beforeCreate() {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "store", icon: "fa-store",
title: window.$gz.translation.get("VendorList"), title: window.$gz.translation.get("VendorList"),
helpUrl: "form-vendors" helpUrl: "form-vendors"
}); });

View File

@@ -615,7 +615,7 @@ function generateMenu(vm) {
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Save"), title: window.$gz.translation.get("Save"),
icon: "save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
vm: vm vm: vm
@@ -625,7 +625,7 @@ function generateMenu(vm) {
if (vm.rights.delete) { if (vm.rights.delete) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Delete"), title: window.$gz.translation.get("Delete"),
icon: "trash-alt", icon: "fa-trash-alt",
surface: true, surface: true,
key: FORM_KEY + ":delete", key: FORM_KEY + ":delete",
vm: vm vm: vm
@@ -636,14 +636,14 @@ function generateMenu(vm) {
//Report not Print, print is a further option //Report not Print, print is a further option
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Report"), title: window.$gz.translation.get("Report"),
icon: "file-alt", icon: "fa-file-alt",
key: FORM_KEY + ":report", key: FORM_KEY + ":report",
vm: vm vm: vm
}); });
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: "stub: Last report used", title: "stub: Last report used",
icon: "file-alt", icon: "fa-file-alt",
key: FORM_KEY + ":report:STUBlastusedreportid", key: FORM_KEY + ":report:STUBlastusedreportid",
vm: vm vm: vm
}); });
@@ -651,7 +651,7 @@ function generateMenu(vm) {
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Duplicate"), title: window.$gz.translation.get("Duplicate"),
icon: "clone", icon: "fa-clone",
key: FORM_KEY + ":duplicate", key: FORM_KEY + ":duplicate",
vm: vm vm: vm
}); });

View File

@@ -73,7 +73,7 @@ function clickHandler(menuItem) {
function generateMenu(vm) { function generateMenu(vm) {
var menuOptions = { var menuOptions = {
isMain: true, isMain: true,
icon: "vial", icon: "fa-vial",
title: window.$gz.translation.get("WidgetList"), title: window.$gz.translation.get("WidgetList"),
helpUrl: "form-ay-data-list-view", helpUrl: "form-ay-data-list-view",
menuItems: [] menuItems: []
@@ -82,7 +82,7 @@ function generateMenu(vm) {
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("New"), title: window.$gz.translation.get("New"),
icon: "plus", icon: "fa-plus",
surface: true, surface: true,
key: FORM_KEY + ":new", key: FORM_KEY + ":new",
vm: vm vm: vm
@@ -93,14 +93,14 @@ function generateMenu(vm) {
//Report not Print, print is a further option //Report not Print, print is a further option
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Report"), title: window.$gz.translation.get("Report"),
icon: "file-alt", icon: "fa-file-alt",
key: FORM_KEY + ":report", key: FORM_KEY + ":report",
vm: vm vm: vm
}); });
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: "stub: Last report used", title: "stub: Last report used",
icon: "file-alt", icon: "fa-file-alt",
key: FORM_KEY + ":report:STUBlastusedreportid", key: FORM_KEY + ":report:STUBlastusedreportid",
vm: vm vm: vm
}); });