This commit is contained in:
2019-07-24 15:15:52 +00:00
parent 565a092251
commit a14e64644d
22 changed files with 132 additions and 93 deletions

View File

@@ -141,7 +141,7 @@ export default {
}, },
beforeDestroy() { beforeDestroy() {
//UNWIRE ALL EVENT HANDLERS FROM GZEVENTBUS //UNWIRE ALL EVENT HANDLERS FROM GZEVENTBUS
window.$gz.eventbus.$off(); window.$gz.eventBus.$off();
}, },
mounted() { mounted() {
//redirect to login if not authenticated //redirect to login if not authenticated
@@ -174,7 +174,7 @@ export default {
this.$root.$emit("triggerScroll"); this.$root.$emit("triggerScroll");
}, },
clickMenuItem(item) { clickMenuItem(item) {
window.$gz.eventbus.$emit("menu-click", item); window.$gz.eventBus.$emit("menu-click", item);
} }
} }
}; };

View File

@@ -20,7 +20,7 @@ function dealWithError(msg, vm) {
msg; msg;
//eslint-disable-next-line //eslint-disable-next-line
console.log(errMsg); console.log(errMsg);
window.$gz.eventbus.$emit("notify-error", errMsg); window.$gz.eventBus.$emit("notify-error", errMsg);
} }
//If a form instance was provided (vue instance) //If a form instance was provided (vue instance)

View File

@@ -17,7 +17,7 @@ export default {
/////////// ///////////
//ERROR //ERROR
window.$gz.eventbus.$on("notify-error", function handleNotifyWarn(msg) { window.$gz.eventBus.$on("notify-error", function handleNotifyWarn(msg) {
vm.$dialog.notify.info(msg, { vm.$dialog.notify.info(msg, {
position: "bottom-right", position: "bottom-right",
icon: "fa-exclamation-triangle", icon: "fa-exclamation-triangle",
@@ -27,7 +27,7 @@ export default {
/////////// ///////////
//WARNING //WARNING
window.$gz.eventbus.$on("notify-warning", function handleNotifyWarn(msg) { window.$gz.eventBus.$on("notify-warning", function handleNotifyWarn(msg) {
vm.$dialog.notify.warning(msg, { vm.$dialog.notify.warning(msg, {
position: "bottom-right", position: "bottom-right",
icon: "fa-exclamation", icon: "fa-exclamation",
@@ -37,7 +37,7 @@ export default {
/////////// ///////////
//INFO //INFO
window.$gz.eventbus.$on("notify-info", function handleNotifyWarn(msg) { window.$gz.eventBus.$on("notify-info", function handleNotifyWarn(msg) {
vm.$dialog.notify.info(msg, { vm.$dialog.notify.info(msg, {
position: "bottom-right", position: "bottom-right",
icon: "fa-info-circle", icon: "fa-info-circle",
@@ -47,7 +47,7 @@ export default {
/////////// ///////////
//SUCCESS //SUCCESS
window.$gz.eventbus.$on("notify-success", function handleNotifyWarn(msg) { window.$gz.eventBus.$on("notify-success", function handleNotifyWarn(msg) {
vm.$dialog.notify.success(msg, { vm.$dialog.notify.success(msg, {
position: "bottom-right", position: "bottom-right",
icon: "fa-check-circle ", icon: "fa-check-circle ",

View File

@@ -320,7 +320,7 @@ export default {
// //
serverErrors(vm, ref) { serverErrors(vm, ref) {
//CHECK PREREQUISITES IN DEV MODE TO ENSURE FORM ISN"T MISSING NEEDED DATA ATTRIBUTES ETC //CHECK PREREQUISITES IN DEV MODE TO ENSURE FORM ISN"T MISSING NEEDED DATA ATTRIBUTES ETC
if (window.$gz.window.$gz.errorHandler.devMode()) { if (window.$gz.errorHandler.devMode()) {
//make sure formState.serverErrors is defined on data //make sure formState.serverErrors is defined on data
if (!window.$gz._.has(vm, "formState.serverError")) { if (!window.$gz._.has(vm, "formState.serverError")) {
throw "DEV ERROR gzform::formState.serverErrors -> formState.serverError seems to be missing from form's vue data object"; throw "DEV ERROR gzform::formState.serverErrors -> formState.serverError seems to be missing from form's vue data object";

View File

@@ -1,5 +1,4 @@
/* XXXeslint-disable */ /* XXXeslint-disable */
//import { processLogout } from "./authutil";
///////////////////////////////// /////////////////////////////////
// Menu utils and handlers // Menu utils and handlers
@@ -155,7 +154,7 @@ export default {
vm.$router.push({ name: item.data }); vm.$router.push({ name: item.data });
break; break;
default: default:
window.$gz.eventbus.$emit( window.$gz.eventBus.$emit(
"notify-warning", "notify-warning",
"gzmenu:handleAppClick - unrecognized command [" + "gzmenu:handleAppClick - unrecognized command [" +
menuItem.key + menuItem.key +
@@ -189,29 +188,29 @@ export default {
// //
wireUpEventHandlers(vm) { wireUpEventHandlers(vm) {
var self = this; var self = this;
window.$gz.eventbus.$on("menu-change", function handleMenuChange(ctx) { window.$gz.eventBus.$on("menu-change", function handleMenuChange(ctx) {
self.handleMenuChange(vm, ctx); self.handleMenuChange(vm, ctx);
}); });
window.$gz.eventbus.$on("menu-replace-item", function handleReplaceMenuItem( window.$gz.eventBus.$on("menu-replace-item", function handleReplaceMenuItem(
newItem newItem
) { ) {
self.handleReplaceMenuItem(vm, newItem); self.handleReplaceMenuItem(vm, newItem);
}); });
window.$gz.eventbus.$on("menu-disable-item", function handleDisableMenuItem( window.$gz.eventBus.$on("menu-disable-item", function handleDisableMenuItem(
key key
) { ) {
self.handleDisableMenuItem(vm, key, true); self.handleDisableMenuItem(vm, key, true);
}); });
window.$gz.eventbus.$on("menu-enable-item", function handleDisableMenuItem( window.$gz.eventBus.$on("menu-enable-item", function handleDisableMenuItem(
key key
) { ) {
self.handleDisableMenuItem(vm, key, false); self.handleDisableMenuItem(vm, key, false);
}); });
window.$gz.eventbus.$on("menu-click", function handleMenuClick(menuitem) { window.$gz.eventBus.$on("menu-click", function handleMenuClick(menuitem) {
self.handleAppClick(vm, menuitem); self.handleAppClick(vm, menuitem);
}); });
} }

View File

@@ -1,7 +1,5 @@
/* Xeslint-disable */ /* Xeslint-disable */
import _ from "../libs/lodash.min.js";
///////////////////////////////// /////////////////////////////////
// General utility library // General utility library
// //
@@ -78,7 +76,7 @@ export default {
// //
normalizeTag: function(tagName) { normalizeTag: function(tagName) {
//kebab case takes care of all the things we need for tags in one go //kebab case takes care of all the things we need for tags in one go
tagName = _.kebabCase(tagName); tagName = window.$gz._.kebabCase(tagName);
//No longer than 255 characters //No longer than 255 characters
tagName = tagName.length > 255 ? tagName.substr(0, 255 - 1) : tagName; tagName = tagName.length > 255 ? tagName.substr(0, 255 - 1) : tagName;

View File

@@ -1,12 +1,7 @@
/* xeslint-disable */ /* xeslint-disable */
import store from "../store";
import roles from "./authorizationroles";
import locale from "./locale";
import api from "./gzapi";
import gzevent from "./eventbus";
function addNavItem(title, icon, route) { function addNavItem(title, icon, route) {
store.commit("addNavItem", { window.$gz.store.commit("addNavItem", {
title, title,
icon, icon,
route route
@@ -18,83 +13,127 @@ function addNavItem(title, icon, route) {
// on change of authentication status // on change of authentication status
export default function initialize() { export default function initialize() {
var promise = new Promise(function(resolve) { var promise = new Promise(function(resolve) {
if (store.state.authenticated) { if (window.$gz.store.state.authenticated) {
//Fetch the core localized text keys that will always be required by user //Fetch the core localized text keys that will always be required by user
locale window.$gz.locale
.fetch(locale.coreKeys) .fetch(window.$gz.locale.coreKeys)
.then(function putFetchedNavItemsInStore() { .then(function putFetchedNavItemsInStore() {
//put nav items into store //put nav items into store
//Everyone has a home //Everyone has a home
addNavItem(locale.get("Home"), "home", "/"); addNavItem(window.$gz.locale.get("Home"), "home", "/");
//NOTE: If a user has read full record or better then they should have access to that area //NOTE: If a user has read full record or better then they should have access to that area
if ( if (
roles.hasRole(roles.AUTHORIZATION_ROLES.TechLimited) || window.$gz.role.hasRole(
roles.hasRole(roles.AUTHORIZATION_ROLES.TechFull) || window.$gz.role.AUTHORIZATION_ROLES.TechLimited
roles.hasRole(roles.AUTHORIZATION_ROLES.SubContractorLimited) || ) ||
roles.hasRole(roles.AUTHORIZATION_ROLES.SubContractorFull) window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.TechFull
) ||
window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.SubContractorLimited
) ||
window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.SubContractorFull
)
) { ) {
addNavItem(locale.get("Service"), "toolbox", "/service"); addNavItem(window.$gz.locale.get("Service"), "toolbox", "/service");
} }
if ( if (
roles.hasRole(roles.AUTHORIZATION_ROLES.DispatchLimited) || window.$gz.role.hasRole(
roles.hasRole(roles.AUTHORIZATION_ROLES.DispatchFull) window.$gz.role.AUTHORIZATION_ROLES.DispatchLimited
) ||
window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.DispatchFull
)
) { ) {
addNavItem(locale.get("Dispatch"), "shipping-fast", "/dispatch");
}
if (
roles.hasRole(roles.AUTHORIZATION_ROLES.InventoryLimited) ||
roles.hasRole(roles.AUTHORIZATION_ROLES.InventoryFull) ||
roles.hasRole(roles.AUTHORIZATION_ROLES.BizAdminLimited) ||
roles.hasRole(roles.AUTHORIZATION_ROLES.BizAdminFull)
) {
addNavItem(locale.get("Inventory"), "dolly", "/inventory");
}
if (roles.hasRole(roles.AUTHORIZATION_ROLES.AccountingFull)) {
addNavItem( addNavItem(
locale.get("Accounting"), window.$gz.locale.get("Dispatch"),
"shipping-fast",
"/dispatch"
);
}
if (
window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.InventoryLimited
) ||
window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull
) ||
window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.BizAdminLimited
) ||
window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull
)
) {
addNavItem(
window.$gz.locale.get("Inventory"),
"dolly",
"/inventory"
);
}
if (
window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull
)
) {
addNavItem(
window.$gz.locale.get("Accounting"),
"file-invoice-dollar", "file-invoice-dollar",
"/accounting" "/accounting"
); );
} }
if ( if (
roles.hasRole(roles.AUTHORIZATION_ROLES.BizAdminLimited) || window.$gz.role.hasRole(
roles.hasRole(roles.AUTHORIZATION_ROLES.BizAdminFull) window.$gz.role.AUTHORIZATION_ROLES.BizAdminLimited
) ||
window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull
)
) { ) {
addNavItem(locale.get("Administration"), "user-tie", "/admin"); addNavItem(
window.$gz.locale.get("Administration"),
"user-tie",
"/admin"
);
} }
if ( if (
roles.hasRole(roles.AUTHORIZATION_ROLES.OpsAdminFull) || window.$gz.role.hasRole(
roles.hasRole(roles.AUTHORIZATION_ROLES.OpsAdminLimited) window.$gz.role.AUTHORIZATION_ROLES.OpsAdminFull
) ||
window.$gz.role.hasRole(
window.$gz.role.AUTHORIZATION_ROLES.OpsAdminLimited
)
) { ) {
addNavItem(locale.get("Operations"), "cogs", "ops"); addNavItem(window.$gz.locale.get("Operations"), "cogs", "ops");
} }
//MOVED TO MENU OUT OF NAV //MOVED TO MENU OUT OF NAV
//Everyone can see about and logout //Everyone can see about and logout
// addNavItem(locale.get("HelpAboutAyaNova"), "info-circle", "/about"); // addNavItem(window.$gz.locale.get("HelpAboutAyaNova"), "info-circle", "/about");
// addNavItem(locale.get("Logout"), "sign-out-alt", "/login"); // addNavItem(window.$gz.locale.get("Logout"), "sign-out-alt", "/login");
}) })
.then(() => { .then(() => {
//CACHE LOCALE SETTINGS //CACHE LOCALE SETTINGS
api window.$gz.api
.get("UserOptions/" + store.state.userId) .get("UserOptions/" + window.$gz.store.state.userId)
.then(res => { .then(res => {
if (res.error != undefined) { if (res.error != undefined) {
//In a form this would trigger a bunch of validation or error display code but for here and now: //In a form this would trigger a bunch of validation or error display code but for here and now:
//convert error to human readable string for display and popup a notification to user //convert error to human readable string for display and popup a notification to user
var msg = api.apiErrorToHumanString(res.error); var msg = window.$gz.api.apiErrorToHumanString(res.error);
store.commit( window.$gz.store.commit(
"logItem", "logItem",
"Initialize::() fetch useroptions -> error" + msg "Initialize::() fetch useroptions -> error" + msg
); );
gzevent.$emit("notify-error", msg); window.$gz.eventBus.$emit("notify-error", msg);
} else { } else {
//TODO: also need the other locale settings such as number and date formats etc //TODO: also need the other locale settings such as number and date formats etc
var localOffset = new Date().getTimezoneOffset(); var localOffset = new Date().getTimezoneOffset();
@@ -107,7 +146,7 @@ export default function initialize() {
//so this should be a confirm prompt but for now will just show it //so this should be a confirm prompt but for now will just show it
//for now just show the message //for now just show the message
gzevent.$emit( window.$gz.eventBus.$emit(
"notify-info", "notify-info",
"Time zone offset for this account is set to " + "Time zone offset for this account is set to " +
res.data.timeZoneOffset + res.data.timeZoneOffset +
@@ -119,7 +158,7 @@ export default function initialize() {
//Store offset in locale data //Store offset in locale data
//TODO: also need the other locale settings such as number and date formats etc to be added at server //TODO: also need the other locale settings such as number and date formats etc to be added at server
store.commit("setLocale", { window.$gz.store.commit("setLocale", {
decimalSeparator: ".", decimalSeparator: ".",
currencySymbol: "$", currencySymbol: "$",
shortDate: "YYYY-MM-DD", shortDate: "YYYY-MM-DD",
@@ -132,7 +171,7 @@ export default function initialize() {
} }
}) })
.catch(function handleFetchUserOptionsError(error) { .catch(function handleFetchUserOptionsError(error) {
store.commit( window.$gz.store.commit(
"logItem", "logItem",
"Initialize::() fetch useroptions -> error" + error "Initialize::() fetch useroptions -> error" + error
); );
@@ -140,7 +179,10 @@ export default function initialize() {
}); });
}) })
.catch(function handleIntializeError(error) { .catch(function handleIntializeError(error) {
store.commit("logItem", "Initialize::() ltfetch -> error" + error); window.$gz.store.commit(
"logItem",
"Initialize::() ltfetch -> error" + error
);
throw error; throw error;
}); });
} }

View File

@@ -207,7 +207,7 @@ export default {
}); });
}, },
filterMe() { filterMe() {
window.$gz.eventbus.$emit( window.$gz.eventBus.$emit(
"notify-info", "notify-info",
"inventoryWidgetList::filterMe -> STUB (selected items count=" + "inventoryWidgetList::filterMe -> STUB (selected items count=" +
this.selected.length + this.selected.length +

View File

@@ -26,7 +26,7 @@ import gzapi from "./api/gzapi";
import gzreport from "./api/gzreport"; import gzreport from "./api/gzreport";
import gzform from "./api/gzform"; import gzform from "./api/gzform";
import gzformcustomtemplate from "./api/form-custom-template"; import gzformcustomtemplate from "./api/form-custom-template";
import roles from "./api/authorizationroles"; import authorizationroles from "./api/authorizationroles";
import gztype from "./api/ayatype"; import gztype from "./api/ayatype";
import "@/assets/css/main.css"; import "@/assets/css/main.css";
@@ -47,8 +47,8 @@ window.$gz = {
locale: locale, locale: locale,
formCustomTemplate: gzformcustomtemplate, formCustomTemplate: gzformcustomtemplate,
type: gztype, type: gztype,
role: roles, role: authorizationroles,
eventbus: gzeventbus, eventBus: gzeventbus,
menu: gzmenu, menu: gzmenu,
dialog: gzdialog, dialog: gzdialog,
util: gzutil, util: gzutil,

View File

@@ -161,7 +161,7 @@ function clickHandler(menuItem) {
window.$gz.util.copyToClipboard(text + "\nCLIENT LOG\n" + logText); window.$gz.util.copyToClipboard(text + "\nCLIENT LOG\n" + logText);
break; break;
default: default:
window.$gz.eventbus.$emit( window.$gz.eventBus.$emit(
"notify-warning", "notify-warning",
"About.vue::context click: [" + m.key + "]" "About.vue::context click: [" + m.key + "]"
); );
@@ -202,7 +202,7 @@ export default {
.then(function() { .then(function() {
vm.formState.ready = true; vm.formState.ready = true;
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: false, isMain: false,
icon: "fa-info-circle", icon: "fa-info-circle",
title: window.$gz.locale.get("HelpAboutAyaNova"), title: window.$gz.locale.get("HelpAboutAyaNova"),
@@ -223,7 +223,7 @@ export default {
} }
] ]
}); });
window.$gz.eventbus.$on("menu-click", clickHandler); window.$gz.eventBus.$on("menu-click", clickHandler);
}) })
.catch(err => { .catch(err => {
vm.formState.ready = true; vm.formState.ready = true;

View File

@@ -10,7 +10,7 @@ export default {
HelloWorld HelloWorld
}, },
beforeCreate() { beforeCreate() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-home", icon: "fa-home",
title: window.$gz.locale.get("Home") title: window.$gz.locale.get("Home")

View File

@@ -10,7 +10,7 @@ export default {
UnderConstruction UnderConstruction
}, },
beforeCreate() { beforeCreate() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-file-invoice-dollar", icon: "fa-file-invoice-dollar",
title: window.$gz.locale.get("Accounting") title: window.$gz.locale.get("Accounting")

View File

@@ -10,7 +10,7 @@ export default {
UnderConstruction UnderConstruction
}, },
beforeCreate() { beforeCreate() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-user-tie", icon: "fa-user-tie",
title: window.$gz.locale.get("Administration") title: window.$gz.locale.get("Administration")

View File

@@ -10,7 +10,7 @@ export default {
UnderConstruction UnderConstruction
}, },
beforeCreate() { beforeCreate() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "sliders-h", icon: "sliders-h",
title: window.$gz.locale.get("Customize") title: window.$gz.locale.get("Customize")

View File

@@ -10,7 +10,7 @@ export default {
UnderConstruction UnderConstruction
}, },
beforeCreate() { beforeCreate() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-shipping-fast", icon: "fa-shipping-fast",
title: window.$gz.locale.get("Dispatch") title: window.$gz.locale.get("Dispatch")

View File

@@ -260,7 +260,7 @@ export default {
created() { created() {
this.rights = window.$gz.role.getRights(window.$gz.type.Widget); this.rights = window.$gz.role.getRights(window.$gz.type.Widget);
window.$gz.eventbus.$on("menu-click", clickHandler); window.$gz.eventBus.$on("menu-click", clickHandler);
//id 0 means create a new record don't load one //id 0 means create a new record don't load one
if (this.$route.params.id != 0) { if (this.$route.params.id != 0) {
this.getDataFromApi(this.$route.params.id); this.getDataFromApi(this.$route.params.id);
@@ -307,7 +307,7 @@ export default {
} }
}, },
beforeDestroy() { beforeDestroy() {
window.$gz.eventbus.$off("menu-click", clickHandler); window.$gz.eventBus.$off("menu-click", clickHandler);
}, },
components: {}, components: {},
data() { data() {
@@ -356,20 +356,20 @@ export default {
//enable / disable save button //enable / disable save button
var canSave = val.dirty && val.valid && !val.readOnly; var canSave = val.dirty && val.valid && !val.readOnly;
if (canSave) { if (canSave) {
window.$gz.eventbus.$emit("menu-enable-item", FORM_KEY + ":save"); window.$gz.eventBus.$emit("menu-enable-item", FORM_KEY + ":save");
} else { } else {
window.$gz.eventbus.$emit("menu-disable-item", FORM_KEY + ":save"); window.$gz.eventBus.$emit("menu-disable-item", FORM_KEY + ":save");
} }
//enable / disable duplicate button //enable / disable duplicate button
var canDuplicate = !val.dirty && val.valid && !val.readOnly; var canDuplicate = !val.dirty && val.valid && !val.readOnly;
if (canDuplicate) { if (canDuplicate) {
window.$gz.eventbus.$emit( window.$gz.eventBus.$emit(
"menu-enable-item", "menu-enable-item",
FORM_KEY + ":duplicate" FORM_KEY + ":duplicate"
); );
} else { } else {
window.$gz.eventbus.$emit( window.$gz.eventBus.$emit(
"menu-disable-item", "menu-disable-item",
FORM_KEY + ":duplicate" FORM_KEY + ":duplicate"
); );
@@ -598,7 +598,7 @@ function clickHandler(menuItem) {
.getReportChoice(m.vm, reportList, selectedItem) .getReportChoice(m.vm, reportList, selectedItem)
.then(res => { .then(res => {
if (res) { if (res) {
window.$gz.eventbus.$emit( window.$gz.eventBus.$emit(
"notify-success", "notify-success",
FORM_KEY + "::report click, selected is: [" + res + "]" FORM_KEY + "::report click, selected is: [" + res + "]"
); );
@@ -607,7 +607,7 @@ function clickHandler(menuItem) {
break; break;
default: default:
window.$gz.eventbus.$emit( window.$gz.eventBus.$emit(
"notify-warning", "notify-warning",
FORM_KEY + "::context click: [" + m.key + "]" FORM_KEY + "::context click: [" + m.key + "]"
); );
@@ -666,7 +666,7 @@ function generateMenu(vm) {
vm: vm vm: vm
}); });
window.$gz.eventbus.$emit("menu-change", menuOptions); window.$gz.eventBus.$emit("menu-change", menuOptions);
} }
var JUST_DELETED = false; var JUST_DELETED = false;

View File

@@ -60,7 +60,7 @@ export default {
}); });
}, },
created() { created() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-dolly", icon: "fa-dolly",
title: window.$gz.locale.get("Inventory") title: window.$gz.locale.get("Inventory")

View File

@@ -23,7 +23,7 @@
/* Xeslint-disable */ /* Xeslint-disable */
export default { export default {
created() { created() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: false, isMain: false,
icon: "fa-info-circle", icon: "fa-info-circle",
title: window.$gz.locale.get("Log"), title: window.$gz.locale.get("Log"),

View File

@@ -73,7 +73,7 @@ export default {
}; };
}, },
created() { created() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "", icon: "",
title: "" title: ""

View File

@@ -16,7 +16,7 @@
<script> <script>
export default { export default {
beforeCreate() { beforeCreate() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-dragon", icon: "fa-dragon",
title: "404 - " + window.$gz.locale.get("ErrorAPI2010") title: "404 - " + window.$gz.locale.get("ErrorAPI2010")

View File

@@ -10,7 +10,7 @@ export default {
UnderConstruction UnderConstruction
}, },
beforeCreate() { beforeCreate() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-cogs", icon: "fa-cogs",
title: window.$gz.locale.get("Operations") title: window.$gz.locale.get("Operations")

View File

@@ -10,7 +10,7 @@ export default {
UnderConstruction UnderConstruction
}, },
beforeCreate() { beforeCreate() {
window.$gz.eventbus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-toolbox", icon: "fa-toolbox",
title: window.$gz.locale.get("Service") title: window.$gz.locale.get("Service")