This commit is contained in:
2020-04-04 18:31:08 +00:00
parent 43de3c8fb0
commit 374a033c3b
59 changed files with 88 additions and 93 deletions

View File

@@ -161,7 +161,7 @@ export default {
} }
// "ErrorRequiredFieldEmpty": "{0} is a required field. Please enter a value for {0}", // "ErrorRequiredFieldEmpty": "{0} is a required field. Please enter a value for {0}",
let err = window.$gz.translation.get("ErrorRequiredFieldEmpty"); let err = vm.$ay.t("ErrorRequiredFieldEmpty");
let fieldName = getControlLabel(ctrl); let fieldName = getControlLabel(ctrl);
err = window.$gz._.replace(err, "{0}", fieldName); err = window.$gz._.replace(err, "{0}", fieldName);
//lodash replace only replaces first instance so need to do it twice //lodash replace only replaces first instance so need to do it twice
@@ -193,7 +193,7 @@ export default {
if (value.length > max) { if (value.length > max) {
//get the translated rule text //get the translated rule text
// "ErrorFieldLengthExceeded": "{0} can not exceed {1} characters.", // "ErrorFieldLengthExceeded": "{0} can not exceed {1} characters.",
let err = window.$gz.translation.get("ErrorFieldLengthExceeded"); let err = vm.$ay.t("ErrorFieldLengthExceeded");
let fieldName = getControlLabel(ctrl); let fieldName = getControlLabel(ctrl);
err = window.$gz._.replace(err, "{0}", fieldName); err = window.$gz._.replace(err, "{0}", fieldName);
err = window.$gz._.replace(err, "{1}", max); err = window.$gz._.replace(err, "{1}", max);
@@ -255,7 +255,7 @@ export default {
if (valueStart > valueEnd) { if (valueStart > valueEnd) {
// "ErrorStartDateAfterEndDate": "Start date must be earlier than stop / end date", // "ErrorStartDateAfterEndDate": "Start date must be earlier than stop / end date",
let err = window.$gz.translation.get("ErrorStartDateAfterEndDate"); let err = vm.$ay.t("ErrorStartDateAfterEndDate");
//Update the form status //Update the form status
this.setFormState({ this.setFormState({
vm: vm, vm: vm,
@@ -287,7 +287,7 @@ export default {
let valueSecond = getControlValue(ctrlSecond); let valueSecond = getControlValue(ctrlSecond);
if (valueFirst != valueSecond) { if (valueFirst != valueSecond) {
let err = window.$gz.translation.get("ErrorNoMatch"); let err = vm.$ay.t("ErrorNoMatch");
//Update the form status //Update the form status
this.setFormState({ this.setFormState({
vm: vm, vm: vm,
@@ -323,7 +323,7 @@ export default {
} }
// "ErrorFieldValueNotInteger": "Value must be an integer" // "ErrorFieldValueNotInteger": "Value must be an integer"
let err = window.$gz.translation.get("ErrorFieldValueNotInteger"); let err = vm.$ay.t("ErrorFieldValueNotInteger");
//Update the form status //Update the form status
this.setFormState({ this.setFormState({
vm: vm, vm: vm,
@@ -360,7 +360,7 @@ export default {
} }
// "ErrorFieldValueNotDecimal": "Value must be a number" // "ErrorFieldValueNotDecimal": "Value must be a number"
let err = window.$gz.translation.get("ErrorFieldValueNotDecimal"); let err = vm.$ay.t("ErrorFieldValueNotDecimal");
//Update the form status //Update the form status
this.setFormState({ this.setFormState({
vm: vm, vm: vm,
@@ -407,7 +407,7 @@ export default {
} }
// "ErrorRequiredFieldEmpty": "{0} is a required field. Please enter a value for {0}", // "ErrorRequiredFieldEmpty": "{0} is a required field. Please enter a value for {0}",
let err = window.$gz.translation.get("ErrorRequiredFieldEmpty"); let err = vm.$ay.t("ErrorRequiredFieldEmpty");
let fieldName = getControlLabel(ctrl); let fieldName = getControlLabel(ctrl);
err = window.$gz._.replace(err, "{0}", fieldName); err = window.$gz._.replace(err, "{0}", fieldName);
//lodash replace only replaces first instance so need to do it twice //lodash replace only replaces first instance so need to do it twice
@@ -447,7 +447,7 @@ export default {
//It's empty and it's required so return error //It's empty and it's required so return error
// "ErrorRequiredFieldEmpty": "{0} is a required field. Please enter a value for {0}", // "ErrorRequiredFieldEmpty": "{0} is a required field. Please enter a value for {0}",
let err = window.$gz.translation.get("ErrorRequiredFieldEmpty"); let err = vm.$ay.t("ErrorRequiredFieldEmpty");
//let fieldName = getControlLabel(ctrl); //let fieldName = getControlLabel(ctrl);
err = window.$gz._.replace(err, "{0}", fieldName); err = window.$gz._.replace(err, "{0}", fieldName);
//lodash replace only replaces first instance so need to do it twice //lodash replace only replaces first instance so need to do it twice
@@ -500,9 +500,7 @@ export default {
//GENERAL ERROR //GENERAL ERROR
if (ref == "errorbox") { if (ref == "errorbox") {
//Add any general errors to ret //Add any general errors to ret
let err = window.$gz.translation.get( let err = vm.$ay.t("ErrorAPI" + apiErrorCode.toString());
"ErrorAPI" + apiErrorCode.toString()
);
if (vm.formState.serverError.message) { if (vm.formState.serverError.message) {
err = err + "\r\n" + vm.formState.serverError.message; err = err + "\r\n" + vm.formState.serverError.message;
} }
@@ -526,7 +524,7 @@ export default {
let fldErr = ""; let fldErr = "";
let fldErrorCode = parseInt(ve.error); let fldErrorCode = parseInt(ve.error);
fldErr = fldErr =
window.$gz.translation.get("ErrorAPI" + fldErrorCode.toString()) + vm.$ay.t("ErrorAPI" + fldErrorCode.toString()) +
" [" + " [" +
ve.error + ve.error +
"]"; "]";

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-calculator", icon: "fa-calculator",
title: window.$gz.translation.get("Accounting"), title: this.$ay.t("Accounting"),
helpUrl: "form-acc-accounting" helpUrl: "form-acc-accounting"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-folder", icon: "fa-folder",
title: window.$gz.translation.get("Attachments"), title: this.$ay.t("Attachments"),
helpUrl: "form-adm-attachments" helpUrl: "form-adm-attachments"
}); });
} }

View File

@@ -404,7 +404,7 @@ function generateMenu(vm) {
let menuOptions = { let menuOptions = {
isMain: false, isMain: false,
icon: null, icon: null,
title: window.$gz.translation.get("PickListTemplates"), title: vm.$ay.t("PickListTemplates"),
helpUrl: "form-adm-global-select-templates", helpUrl: "form-adm-global-select-templates",
formData: { formData: {
ayaType: window.$gz.type.FormCustom, ayaType: window.$gz.type.FormCustom,
@@ -415,7 +415,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: vm.$ay.t("Save"),
icon: "fa-save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
@@ -424,7 +424,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: vm.$ay.t("ResetToDefault"),
icon: "fa-undo", icon: "fa-undo",
surface: false, surface: false,
key: FORM_KEY + ":delete", key: FORM_KEY + ":delete",

View File

@@ -17,7 +17,7 @@ export default {
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.translation.get("AdministrationGlobalSettings"), title: this.$ay.t("AdministrationGlobalSettings"),
helpUrl: "form-adm-global-settings" helpUrl: "form-adm-global-settings"
}); });
}, },

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-history", icon: "fa-history",
title: window.$gz.translation.get("History"), title: this.$ay.t("History"),
helpUrl: "form-adm-history" helpUrl: "form-adm-history"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-ticket-alt", icon: "fa-ticket-alt",
title: window.$gz.translation.get("HelpLicense"), title: this.$ay.t("HelpLicense"),
helpUrl: "form-adm-license" helpUrl: "form-adm-license"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-th-list", icon: "fa-th-list",
title: window.$gz.translation.get("ReportList"), title: this.$ay.t("ReportList"),
helpUrl: "form-adm-report-templates" helpUrl: "form-adm-report-templates"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-chart-line", icon: "fa-chart-line",
title: window.$gz.translation.get("Statistics"), title: this.$ay.t("Statistics"),
helpUrl: "form-adm-statistics" helpUrl: "form-adm-statistics"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-language", icon: "fa-language",
title: window.$gz.translation.get("Translation"), title: this.$ay.t("Translation"),
helpUrl: "form-adm-translation" helpUrl: "form-adm-translation"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-users", icon: "fa-users",
title: window.$gz.translation.get("UserList"), title: this.$ay.t("UserList"),
helpUrl: "form-adm-users" helpUrl: "form-adm-users"
}); });
} }

View File

@@ -186,8 +186,7 @@ export default {
NonSchedulable = 3, NonSchedulable = 3,
Customer = 4, Customer = 4,
HeadOffice = 5, HeadOffice = 5,
Utility = 6, Utility = 6, Subcontractor = 7 */
Subcontractor = 7 */
return ( return (
window.$gz.store.state.userType == 1 || window.$gz.store.state.userType == 1 ||
window.$gz.store.state.userType == 2 || window.$gz.store.state.userType == 2 ||
@@ -204,18 +203,18 @@ function generateMenu(vm) {
let menuOptions = { let menuOptions = {
isMain: false, isMain: false,
icon: "fa-info-circle", icon: "fa-info-circle",
title: window.$gz.translation.get("HelpAboutAyaNova"), title: this.$ay.t("HelpAboutAyaNova"),
helpUrl: "form-ay-about", helpUrl: "form-ay-about",
menuItems: [ menuItems: [
{ {
title: window.$gz.translation.get("Copy"), title: vm.$ay.t("Copy"),
icon: "fa-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: vm.$ay.t("Log"),
icon: "fa-glasses", icon: "fa-glasses",
surface: true, surface: true,
key: "app:nav:log", key: "app:nav:log",

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-paperclip", icon: "fa-paperclip",
title: window.$gz.translation.get("Attachments"), title: this.$ay.t("Attachments"),
helpUrl: "form-ay-attachments" helpUrl: "form-ay-attachments"
}); });
} }

View File

@@ -273,7 +273,7 @@ function generateMenu(vm) {
let menuOptions = { let menuOptions = {
isMain: false, isMain: false,
icon: "fa-sliders-h", icon: "fa-sliders-h",
title: window.$gz.translation.get("Customize"), title: vm.$ay.t("Customize"),
helpUrl: "form-ay-customize", helpUrl: "form-ay-customize",
formData: { formData: {
ayaType: window.$gz.type.FormCustom, ayaType: window.$gz.type.FormCustom,
@@ -284,7 +284,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: vm.$ay.t("Save"),
icon: "fa-save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
@@ -295,7 +295,7 @@ function generateMenu(vm) {
//Extra link to it here so people can stumble their way onto it //Extra link to it here so people can stumble their way onto it
//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: vm.$ay.t("Translation"),
icon: "fa-language", icon: "fa-language",
data: "adm-translation", data: "adm-translation",
key: "app:nav" key: "app:nav"
@@ -413,7 +413,7 @@ function initDataObject(vm) {
let objItem = { let objItem = {
key: faf.fieldKey, key: faf.fieldKey,
title: window.$gz.translation.get(faf.tKey), title: vm.$ay.t(faf.tKey),
stockRequired: !faf.hideable, stockRequired: !faf.hideable,
custom: faf.isCustomField, custom: faf.isCustomField,
required: faf.hideable === false || templateItem.required === true, required: faf.hideable === false || templateItem.required === true,

View File

@@ -924,7 +924,7 @@ function generateMenu(vm) {
let menuOptions = { let menuOptions = {
isMain: false, isMain: false,
icon: "fa-filter", icon: "fa-filter",
title: window.$gz.translation.get("DataListView"), title: vm.$ay.t("DataListView"),
helpUrl: "form-ay-data-list-view", helpUrl: "form-ay-data-list-view",
formData: { formData: {
ayaType: window.$gz.type.FormCustom, ayaType: window.$gz.type.FormCustom,
@@ -935,7 +935,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: vm.$ay.t("Save"),
icon: "fa-save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
@@ -944,7 +944,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: vm.$ay.t("Delete"),
icon: "fa-trash-alt", icon: "fa-trash-alt",
surface: true, surface: true,
key: FORM_KEY + ":delete", key: FORM_KEY + ":delete",
@@ -953,7 +953,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: vm.$ay.t("Duplicate"),
icon: "fa-clone", icon: "fa-clone",
key: FORM_KEY + ":duplicate", key: FORM_KEY + ":duplicate",
vm: vm vm: vm

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-history", icon: "fa-history",
title: window.$gz.translation.get("History"), title: this.$ay.t("History"),
helpUrl: "form-ay-history" helpUrl: "form-ay-history"
}); });
} }

View File

@@ -26,7 +26,7 @@ export default {
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.translation.get("Log"), title: this.$ay.t("Log"),
helpUrl: "form-ay-log", helpUrl: "form-ay-log",
menuItems: [] menuItems: []

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-calendar-check", icon: "fa-calendar-check",
title: window.$gz.translation.get("Review"), title: this.$ay.t("Review"),
helpUrl: "form-ay-review" helpUrl: "form-ay-review"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-feather", icon: "fa-feather",
title: window.$gz.translation.get("WikiPage"), title: this.$ay.t("WikiPage"),
helpUrl: "form-ay-wiki" helpUrl: "form-ay-wiki"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-address-card", icon: "fa-address-card",
title: window.$gz.translation.get("ClientList"), title: this.$ay.t("ClientList"),
helpUrl: "form-cust-customers" helpUrl: "form-cust-customers"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-sitemap", icon: "fa-sitemap",
title: window.$gz.translation.get("HeadOfficeList"), title: this.$ay.t("HeadOfficeList"),
helpUrl: "form-cust-headoffices" helpUrl: "form-cust-headoffices"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-child", icon: "fa-child",
title: window.$gz.translation.get("ClientServiceRequestList"), title: this.$ay.t("ClientServiceRequestList"),
helpUrl: "form-customer-csr-list" helpUrl: "form-customer-csr-list"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-tools", icon: "fa-tools",
title: window.$gz.translation.get("WorkorderServiceList"), title: this.$ay.t("WorkorderServiceList"),
helpUrl: "form-customer-workorders" helpUrl: "form-customer-workorders"
}); });
} }

View File

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

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-inbox", icon: "fa-inbox",
title: window.$gz.translation.get("MemoList"), title: this.$ay.t("MemoList"),
helpUrl: "form-home-memos" helpUrl: "form-home-memos"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-bullhorn", icon: "fa-bullhorn",
title: window.$gz.translation.get("NotifySubscriptionList"), title: this.$ay.t("NotifySubscriptionList"),
helpUrl: "form-home-notify-subscriptions" helpUrl: "form-home-notify-subscriptions"
}); });
} }

View File

@@ -267,14 +267,14 @@ function generateMenu(vm) {
let menuOptions = { let menuOptions = {
isMain: true, isMain: true,
icon: "fa-key", icon: "fa-key",
title: window.$gz.translation.get("SetLoginPassword"), title: vm.$ay.t("SetLoginPassword"),
helpUrl: "form-home-password", helpUrl: "form-home-password",
menuItems: [] menuItems: []
}; };
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Save"), title: vm.$ay.t("Save"),
icon: "fa-save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-sticky-note", icon: "fa-sticky-note",
title: window.$gz.translation.get("ReminderList"), title: this.$ay.t("ReminderList"),
helpUrl: "form-home-reminders" helpUrl: "form-home-reminders"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-calendar-day", icon: "fa-calendar-day",
title: window.$gz.translation.get("Schedule"), title: this.$ay.t("Schedule"),
helpUrl: "form-home-schedule" helpUrl: "form-home-schedule"
}); });
} }

View File

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

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-language", icon: "fa-language",
title: window.$gz.translation.get("Translation"), title: this.$ay.t("Translation"),
helpUrl: "form-home-translation" helpUrl: "form-home-translation"
}); });
} }

View File

@@ -383,7 +383,7 @@ function generateMenu(vm) {
let menuOptions = { let menuOptions = {
isMain: true, isMain: true,
icon: "fa-user-cog", icon: "fa-user-cog",
title: window.$gz.translation.get("UserSettings"), title: vm.$ay.t("UserSettings"),
helpUrl: "form-home-user-settings", helpUrl: "form-home-user-settings",
formData: { formData: {
ayaType: window.$gz.type.UserOptions ayaType: window.$gz.type.UserOptions
@@ -393,7 +393,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: vm.$ay.t("Save"),
icon: "fa-save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
@@ -403,7 +403,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: vm.$ay.t("SetLoginPassword"),
icon: "fa-key", icon: "fa-key",
data: "home-password", data: "home-password",
key: "app:nav" key: "app:nav"

View File

@@ -13,7 +13,7 @@ export default {
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.translation.get("InventoryPartInventoryAdjustments"), title: this.$ay.t("InventoryPartInventoryAdjustments"),
helpUrl: "form-inv-adjustments" helpUrl: "form-inv-adjustments"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-pallet", icon: "fa-pallet",
title: window.$gz.translation.get("PartByWarehouseInventoryList"), title: this.$ay.t("PartByWarehouseInventoryList"),
helpUrl: "form-inv-part-inventory" helpUrl: "form-inv-part-inventory"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-paper-plane", icon: "fa-paper-plane",
title: window.$gz.translation.get("WorkorderItemPartRequestList"), title: this.$ay.t("WorkorderItemPartRequestList"),
helpUrl: "form-inv-part-requests" helpUrl: "form-inv-part-requests"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-boxes", icon: "fa-boxes",
title: window.$gz.translation.get("PartList"), title: this.$ay.t("PartList"),
helpUrl: "form-inv-parts" helpUrl: "form-inv-parts"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-dolly-flatbed", icon: "fa-dolly-flatbed",
title: window.$gz.translation.get("InventoryPurchaseOrderReceipts"), title: this.$ay.t("InventoryPurchaseOrderReceipts"),
helpUrl: "form-inv-purchase-order-receipts" helpUrl: "form-inv-purchase-order-receipts"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
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.translation.get("InventoryPurchaseOrders"), title: this.$ay.t("InventoryPurchaseOrders"),
helpUrl: "form-inv-purchase-orders" helpUrl: "form-inv-purchase-orders"
}); });
} }

View File

@@ -33,7 +33,7 @@ export default {
) { ) {
this.msg = '404 - NOT FOUND: "' + badPath + '"'; this.msg = '404 - NOT FOUND: "' + badPath + '"';
} else { } else {
let notFoundTranslated = window.$gz.translation.get("ErrorAPI2010"); let notFoundTranslated = this.$ay.t("ErrorAPI2010");
//format the message //format the message
this.msg = "404 - " + notFoundTranslated + ': "' + badPath + '"'; this.msg = "404 - " + notFoundTranslated + ': "' + badPath + '"';
//log it in case we need to see it in tech support //log it in case we need to see it in tech support

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-file-archive", icon: "fa-file-archive",
title: window.$gz.translation.get("Backup"), title: this.$ay.t("Backup"),
helpUrl: "form-ops-backup" helpUrl: "form-ops-backup"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-robot", icon: "fa-robot",
title: window.$gz.translation.get("ServerJobs"), title: this.$ay.t("ServerJobs"),
helpUrl: "form-ops-jobs" helpUrl: "form-ops-jobs"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-history", icon: "fa-history",
title: window.$gz.translation.get("ServerLog"), title: this.$ay.t("ServerLog"),
helpUrl: "form-ops-log" helpUrl: "form-ops-log"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-file-medical-alt", icon: "fa-file-medical-alt",
title: window.$gz.translation.get("ServerMetrics"), title: this.$ay.t("ServerMetrics"),
helpUrl: "form-ops-metrics" helpUrl: "form-ops-metrics"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-bullhorn", icon: "fa-bullhorn",
title: window.$gz.translation.get("NotificationSettings"), title: this.$ay.t("NotificationSettings"),
helpUrl: "form-ops-notification-settings" helpUrl: "form-ops-notification-settings"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-file-contract", icon: "fa-file-contract",
title: window.$gz.translation.get("ContractList"), title: this.$ay.t("ContractList"),
helpUrl: "form-svc-contracts" helpUrl: "form-svc-contracts"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-child", icon: "fa-child",
title: window.$gz.translation.get("ClientServiceRequestList"), title: this.$ay.t("ClientServiceRequestList"),
helpUrl: "form-svc-csr-list" helpUrl: "form-svc-csr-list"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-plug", icon: "fa-plug",
title: window.$gz.translation.get("LoanItemList"), title: this.$ay.t("LoanItemList"),
helpUrl: "form-svc-loaners" helpUrl: "form-svc-loaners"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-business-time", icon: "fa-business-time",
title: window.$gz.translation.get("WorkorderPreventiveMaintenanceList"), title: this.$ay.t("WorkorderPreventiveMaintenanceList"),
helpUrl: "form-svc-pm-list" helpUrl: "form-svc-pm-list"
}); });
} }

View File

@@ -13,9 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-stamp", icon: "fa-stamp",
title: window.$gz.translation.get( title: this.$ay.t("WorkorderPreventiveMaintenanceTemplate"),
"WorkorderPreventiveMaintenanceTemplate"
),
helpUrl: "form-svc-pm-templates" helpUrl: "form-svc-pm-templates"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-stamp", icon: "fa-stamp",
title: window.$gz.translation.get("WorkorderQuoteTemplate"), title: this.$ay.t("WorkorderQuoteTemplate"),
helpUrl: "form-svc-quote-templates" helpUrl: "form-svc-quote-templates"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-edit", icon: "fa-edit",
title: window.$gz.translation.get("WorkorderQuoteList"), title: this.$ay.t("WorkorderQuoteList"),
helpUrl: "form-svc-quotes" helpUrl: "form-svc-quotes"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-calendar-alt", icon: "fa-calendar-alt",
title: window.$gz.translation.get("Schedule"), title: this.$ay.t("Schedule"),
helpUrl: "form-svc-schedule" helpUrl: "form-svc-schedule"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-dice-d20", icon: "fa-dice-d20",
title: window.$gz.translation.get("UnitModels"), title: this.$ay.t("UnitModels"),
helpUrl: "form-svc-unit-models" helpUrl: "form-svc-unit-models"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-fan", icon: "fa-fan",
title: window.$gz.translation.get("UnitList"), title: this.$ay.t("UnitList"),
helpUrl: "form-svc-units" helpUrl: "form-svc-units"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-stamp", icon: "fa-stamp",
title: window.$gz.translation.get("WorkorderServiceTemplate"), title: this.$ay.t("WorkorderServiceTemplate"),
helpUrl: "form-svc-workorder-templates" helpUrl: "form-svc-workorder-templates"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-tools", icon: "fa-tools",
title: window.$gz.translation.get("WorkorderServiceList"), title: this.$ay.t("WorkorderServiceList"),
helpUrl: "form-svc-workorders" helpUrl: "form-svc-workorders"
}); });
} }

View File

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

View File

@@ -614,7 +614,7 @@ function generateMenu(vm) {
let menuOptions = { let menuOptions = {
isMain: false, isMain: false,
icon: "fa-splotch", icon: "fa-splotch",
title: window.$gz.translation.get("Widget"), title: vm.$ay.t("Widget"),
helpUrl: "form-widget", helpUrl: "form-widget",
formData: { formData: {
ayaType: window.$gz.type.Widget, ayaType: window.$gz.type.Widget,
@@ -626,7 +626,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: vm.$ay.t("Save"),
icon: "fa-save", icon: "fa-save",
surface: true, surface: true,
key: FORM_KEY + ":save", key: FORM_KEY + ":save",
@@ -636,7 +636,7 @@ function generateMenu(vm) {
if (vm.rights.delete && vm.$route.params.recordid != 0) { if (vm.rights.delete && vm.$route.params.recordid != 0) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("Delete"), title: vm.$ay.t("Delete"),
icon: "fa-trash-alt", icon: "fa-trash-alt",
surface: true, surface: true,
key: FORM_KEY + ":delete", key: FORM_KEY + ":delete",
@@ -647,7 +647,7 @@ function generateMenu(vm) {
//STUB REPORTS //STUB REPORTS
//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: vm.$ay.t("Report"),
icon: "fa-file-alt", icon: "fa-file-alt",
key: FORM_KEY + ":report", key: FORM_KEY + ":report",
vm: vm vm: vm
@@ -662,7 +662,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: vm.$ay.t("Duplicate"),
icon: "fa-clone", icon: "fa-clone",
key: FORM_KEY + ":duplicate", key: FORM_KEY + ":duplicate",
vm: vm vm: vm

View File

@@ -74,14 +74,14 @@ function generateMenu(vm) {
let menuOptions = { let menuOptions = {
isMain: true, isMain: true,
icon: "fa-vial", icon: "fa-vial",
title: window.$gz.translation.get("WidgetList"), title: vm.$ay.t("WidgetList"),
helpUrl: "form-ay-data-list-view", helpUrl: "form-ay-data-list-view",
menuItems: [] menuItems: []
}; };
if (vm.rights.change) { if (vm.rights.change) {
menuOptions.menuItems.push({ menuOptions.menuItems.push({
title: window.$gz.translation.get("New"), title: vm.$ay.t("New"),
icon: "fa-plus", icon: "fa-plus",
surface: true, surface: true,
key: FORM_KEY + ":new", key: FORM_KEY + ":new",
@@ -92,7 +92,7 @@ function generateMenu(vm) {
//STUB REPORTS //STUB REPORTS
//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: vm.$ay.t("Report"),
icon: "fa-file-alt", icon: "fa-file-alt",
key: FORM_KEY + ":report", key: FORM_KEY + ":report",
vm: vm vm: vm