This commit is contained in:
@@ -161,7 +161,7 @@ export default {
|
||||
}
|
||||
|
||||
// "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);
|
||||
err = window.$gz._.replace(err, "{0}", fieldName);
|
||||
//lodash replace only replaces first instance so need to do it twice
|
||||
@@ -193,7 +193,7 @@ export default {
|
||||
if (value.length > max) {
|
||||
//get the translated rule text
|
||||
// "ErrorFieldLengthExceeded": "{0} can not exceed {1} characters.",
|
||||
let err = window.$gz.translation.get("ErrorFieldLengthExceeded");
|
||||
let err = vm.$ay.t("ErrorFieldLengthExceeded");
|
||||
let fieldName = getControlLabel(ctrl);
|
||||
err = window.$gz._.replace(err, "{0}", fieldName);
|
||||
err = window.$gz._.replace(err, "{1}", max);
|
||||
@@ -255,7 +255,7 @@ export default {
|
||||
|
||||
if (valueStart > valueEnd) {
|
||||
// "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
|
||||
this.setFormState({
|
||||
vm: vm,
|
||||
@@ -287,7 +287,7 @@ export default {
|
||||
let valueSecond = getControlValue(ctrlSecond);
|
||||
|
||||
if (valueFirst != valueSecond) {
|
||||
let err = window.$gz.translation.get("ErrorNoMatch");
|
||||
let err = vm.$ay.t("ErrorNoMatch");
|
||||
//Update the form status
|
||||
this.setFormState({
|
||||
vm: vm,
|
||||
@@ -323,7 +323,7 @@ export default {
|
||||
}
|
||||
|
||||
// "ErrorFieldValueNotInteger": "Value must be an integer"
|
||||
let err = window.$gz.translation.get("ErrorFieldValueNotInteger");
|
||||
let err = vm.$ay.t("ErrorFieldValueNotInteger");
|
||||
//Update the form status
|
||||
this.setFormState({
|
||||
vm: vm,
|
||||
@@ -360,7 +360,7 @@ export default {
|
||||
}
|
||||
|
||||
// "ErrorFieldValueNotDecimal": "Value must be a number"
|
||||
let err = window.$gz.translation.get("ErrorFieldValueNotDecimal");
|
||||
let err = vm.$ay.t("ErrorFieldValueNotDecimal");
|
||||
//Update the form status
|
||||
this.setFormState({
|
||||
vm: vm,
|
||||
@@ -407,7 +407,7 @@ export default {
|
||||
}
|
||||
|
||||
// "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);
|
||||
err = window.$gz._.replace(err, "{0}", fieldName);
|
||||
//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
|
||||
|
||||
// "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);
|
||||
err = window.$gz._.replace(err, "{0}", fieldName);
|
||||
//lodash replace only replaces first instance so need to do it twice
|
||||
@@ -500,9 +500,7 @@ export default {
|
||||
//GENERAL ERROR
|
||||
if (ref == "errorbox") {
|
||||
//Add any general errors to ret
|
||||
let err = window.$gz.translation.get(
|
||||
"ErrorAPI" + apiErrorCode.toString()
|
||||
);
|
||||
let err = vm.$ay.t("ErrorAPI" + apiErrorCode.toString());
|
||||
if (vm.formState.serverError.message) {
|
||||
err = err + "\r\n" + vm.formState.serverError.message;
|
||||
}
|
||||
@@ -526,7 +524,7 @@ export default {
|
||||
let fldErr = "";
|
||||
let fldErrorCode = parseInt(ve.error);
|
||||
fldErr =
|
||||
window.$gz.translation.get("ErrorAPI" + fldErrorCode.toString()) +
|
||||
vm.$ay.t("ErrorAPI" + fldErrorCode.toString()) +
|
||||
" [" +
|
||||
ve.error +
|
||||
"]";
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-calculator",
|
||||
title: window.$gz.translation.get("Accounting"),
|
||||
title: this.$ay.t("Accounting"),
|
||||
helpUrl: "form-acc-accounting"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-folder",
|
||||
title: window.$gz.translation.get("Attachments"),
|
||||
title: this.$ay.t("Attachments"),
|
||||
helpUrl: "form-adm-attachments"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -404,7 +404,7 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: false,
|
||||
icon: null,
|
||||
title: window.$gz.translation.get("PickListTemplates"),
|
||||
title: vm.$ay.t("PickListTemplates"),
|
||||
helpUrl: "form-adm-global-select-templates",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.FormCustom,
|
||||
@@ -415,7 +415,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Save"),
|
||||
title: vm.$ay.t("Save"),
|
||||
icon: "fa-save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
@@ -424,7 +424,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.delete) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("ResetToDefault"),
|
||||
title: vm.$ay.t("ResetToDefault"),
|
||||
icon: "fa-undo",
|
||||
surface: false,
|
||||
key: FORM_KEY + ":delete",
|
||||
|
||||
@@ -17,7 +17,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-cogs",
|
||||
title: window.$gz.translation.get("AdministrationGlobalSettings"),
|
||||
title: this.$ay.t("AdministrationGlobalSettings"),
|
||||
helpUrl: "form-adm-global-settings"
|
||||
});
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-history",
|
||||
title: window.$gz.translation.get("History"),
|
||||
title: this.$ay.t("History"),
|
||||
helpUrl: "form-adm-history"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-ticket-alt",
|
||||
title: window.$gz.translation.get("HelpLicense"),
|
||||
title: this.$ay.t("HelpLicense"),
|
||||
helpUrl: "form-adm-license"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-th-list",
|
||||
title: window.$gz.translation.get("ReportList"),
|
||||
title: this.$ay.t("ReportList"),
|
||||
helpUrl: "form-adm-report-templates"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-chart-line",
|
||||
title: window.$gz.translation.get("Statistics"),
|
||||
title: this.$ay.t("Statistics"),
|
||||
helpUrl: "form-adm-statistics"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-language",
|
||||
title: window.$gz.translation.get("Translation"),
|
||||
title: this.$ay.t("Translation"),
|
||||
helpUrl: "form-adm-translation"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-users",
|
||||
title: window.$gz.translation.get("UserList"),
|
||||
title: this.$ay.t("UserList"),
|
||||
helpUrl: "form-adm-users"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -186,8 +186,7 @@ export default {
|
||||
NonSchedulable = 3,
|
||||
Customer = 4,
|
||||
HeadOffice = 5,
|
||||
Utility = 6,
|
||||
Subcontractor = 7 */
|
||||
Utility = 6, Subcontractor = 7 */
|
||||
return (
|
||||
window.$gz.store.state.userType == 1 ||
|
||||
window.$gz.store.state.userType == 2 ||
|
||||
@@ -204,18 +203,18 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: false,
|
||||
icon: "fa-info-circle",
|
||||
title: window.$gz.translation.get("HelpAboutAyaNova"),
|
||||
title: this.$ay.t("HelpAboutAyaNova"),
|
||||
helpUrl: "form-ay-about",
|
||||
menuItems: [
|
||||
{
|
||||
title: window.$gz.translation.get("Copy"),
|
||||
title: vm.$ay.t("Copy"),
|
||||
icon: "fa-copy",
|
||||
surface: true,
|
||||
key: "about:copysupportinfo",
|
||||
vm: vm
|
||||
},
|
||||
{
|
||||
title: window.$gz.translation.get("Log"),
|
||||
title: vm.$ay.t("Log"),
|
||||
icon: "fa-glasses",
|
||||
surface: true,
|
||||
key: "app:nav:log",
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-paperclip",
|
||||
title: window.$gz.translation.get("Attachments"),
|
||||
title: this.$ay.t("Attachments"),
|
||||
helpUrl: "form-ay-attachments"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: false,
|
||||
icon: "fa-sliders-h",
|
||||
title: window.$gz.translation.get("Customize"),
|
||||
title: vm.$ay.t("Customize"),
|
||||
helpUrl: "form-ay-customize",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.FormCustom,
|
||||
@@ -284,7 +284,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Save"),
|
||||
title: vm.$ay.t("Save"),
|
||||
icon: "fa-save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
@@ -295,7 +295,7 @@ function generateMenu(vm) {
|
||||
//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
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Translation"),
|
||||
title: vm.$ay.t("Translation"),
|
||||
icon: "fa-language",
|
||||
data: "adm-translation",
|
||||
key: "app:nav"
|
||||
@@ -413,7 +413,7 @@ function initDataObject(vm) {
|
||||
|
||||
let objItem = {
|
||||
key: faf.fieldKey,
|
||||
title: window.$gz.translation.get(faf.tKey),
|
||||
title: vm.$ay.t(faf.tKey),
|
||||
stockRequired: !faf.hideable,
|
||||
custom: faf.isCustomField,
|
||||
required: faf.hideable === false || templateItem.required === true,
|
||||
|
||||
@@ -924,7 +924,7 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: false,
|
||||
icon: "fa-filter",
|
||||
title: window.$gz.translation.get("DataListView"),
|
||||
title: vm.$ay.t("DataListView"),
|
||||
helpUrl: "form-ay-data-list-view",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.FormCustom,
|
||||
@@ -935,7 +935,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Save"),
|
||||
title: vm.$ay.t("Save"),
|
||||
icon: "fa-save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
@@ -944,7 +944,7 @@ function generateMenu(vm) {
|
||||
}
|
||||
if (vm.rights.delete) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Delete"),
|
||||
title: vm.$ay.t("Delete"),
|
||||
icon: "fa-trash-alt",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":delete",
|
||||
@@ -953,7 +953,7 @@ function generateMenu(vm) {
|
||||
}
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Duplicate"),
|
||||
title: vm.$ay.t("Duplicate"),
|
||||
icon: "fa-clone",
|
||||
key: FORM_KEY + ":duplicate",
|
||||
vm: vm
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-history",
|
||||
title: window.$gz.translation.get("History"),
|
||||
title: this.$ay.t("History"),
|
||||
helpUrl: "form-ay-history"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: false,
|
||||
icon: "fa-info-circle",
|
||||
title: window.$gz.translation.get("Log"),
|
||||
title: this.$ay.t("Log"),
|
||||
helpUrl: "form-ay-log",
|
||||
|
||||
menuItems: []
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-calendar-check",
|
||||
title: window.$gz.translation.get("Review"),
|
||||
title: this.$ay.t("Review"),
|
||||
helpUrl: "form-ay-review"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-feather",
|
||||
title: window.$gz.translation.get("WikiPage"),
|
||||
title: this.$ay.t("WikiPage"),
|
||||
helpUrl: "form-ay-wiki"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-address-card",
|
||||
title: window.$gz.translation.get("ClientList"),
|
||||
title: this.$ay.t("ClientList"),
|
||||
helpUrl: "form-cust-customers"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-sitemap",
|
||||
title: window.$gz.translation.get("HeadOfficeList"),
|
||||
title: this.$ay.t("HeadOfficeList"),
|
||||
helpUrl: "form-cust-headoffices"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-child",
|
||||
title: window.$gz.translation.get("ClientServiceRequestList"),
|
||||
title: this.$ay.t("ClientServiceRequestList"),
|
||||
helpUrl: "form-customer-csr-list"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-tools",
|
||||
title: window.$gz.translation.get("WorkorderServiceList"),
|
||||
title: this.$ay.t("WorkorderServiceList"),
|
||||
helpUrl: "form-customer-workorders"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-tachometer-alt",
|
||||
title: window.$gz.translation.get("Dashboard"),
|
||||
title: this.$ay.t("Dashboard"),
|
||||
helpUrl: "form-home-dashboard"
|
||||
});
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-inbox",
|
||||
title: window.$gz.translation.get("MemoList"),
|
||||
title: this.$ay.t("MemoList"),
|
||||
helpUrl: "form-home-memos"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-bullhorn",
|
||||
title: window.$gz.translation.get("NotifySubscriptionList"),
|
||||
title: this.$ay.t("NotifySubscriptionList"),
|
||||
helpUrl: "form-home-notify-subscriptions"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -267,14 +267,14 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: true,
|
||||
icon: "fa-key",
|
||||
title: window.$gz.translation.get("SetLoginPassword"),
|
||||
title: vm.$ay.t("SetLoginPassword"),
|
||||
helpUrl: "form-home-password",
|
||||
menuItems: []
|
||||
};
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Save"),
|
||||
title: vm.$ay.t("Save"),
|
||||
icon: "fa-save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-sticky-note",
|
||||
title: window.$gz.translation.get("ReminderList"),
|
||||
title: this.$ay.t("ReminderList"),
|
||||
helpUrl: "form-home-reminders"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-calendar-day",
|
||||
title: window.$gz.translation.get("Schedule"),
|
||||
title: this.$ay.t("Schedule"),
|
||||
helpUrl: "form-home-schedule"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-search",
|
||||
title: window.$gz.translation.get("Search"),
|
||||
title: this.$ay.t("Search"),
|
||||
helpUrl: "form-home-search"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-language",
|
||||
title: window.$gz.translation.get("Translation"),
|
||||
title: this.$ay.t("Translation"),
|
||||
helpUrl: "form-home-translation"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -383,7 +383,7 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: true,
|
||||
icon: "fa-user-cog",
|
||||
title: window.$gz.translation.get("UserSettings"),
|
||||
title: vm.$ay.t("UserSettings"),
|
||||
helpUrl: "form-home-user-settings",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.UserOptions
|
||||
@@ -393,7 +393,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Save"),
|
||||
title: vm.$ay.t("Save"),
|
||||
icon: "fa-save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
@@ -403,7 +403,7 @@ function generateMenu(vm) {
|
||||
|
||||
//change password and login
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("SetLoginPassword"),
|
||||
title: vm.$ay.t("SetLoginPassword"),
|
||||
icon: "fa-key",
|
||||
data: "home-password",
|
||||
key: "app:nav"
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-dolly",
|
||||
title: window.$gz.translation.get("InventoryPartInventoryAdjustments"),
|
||||
title: this.$ay.t("InventoryPartInventoryAdjustments"),
|
||||
helpUrl: "form-inv-adjustments"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-pallet",
|
||||
title: window.$gz.translation.get("PartByWarehouseInventoryList"),
|
||||
title: this.$ay.t("PartByWarehouseInventoryList"),
|
||||
helpUrl: "form-inv-part-inventory"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-paper-plane",
|
||||
title: window.$gz.translation.get("WorkorderItemPartRequestList"),
|
||||
title: this.$ay.t("WorkorderItemPartRequestList"),
|
||||
helpUrl: "form-inv-part-requests"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-boxes",
|
||||
title: window.$gz.translation.get("PartList"),
|
||||
title: this.$ay.t("PartList"),
|
||||
helpUrl: "form-inv-parts"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-dolly-flatbed",
|
||||
title: window.$gz.translation.get("InventoryPurchaseOrderReceipts"),
|
||||
title: this.$ay.t("InventoryPurchaseOrderReceipts"),
|
||||
helpUrl: "form-inv-purchase-order-receipts"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-shipping-fast",
|
||||
title: window.$gz.translation.get("InventoryPurchaseOrders"),
|
||||
title: this.$ay.t("InventoryPurchaseOrders"),
|
||||
helpUrl: "form-inv-purchase-orders"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ export default {
|
||||
) {
|
||||
this.msg = '404 - NOT FOUND: "' + badPath + '"';
|
||||
} else {
|
||||
let notFoundTranslated = window.$gz.translation.get("ErrorAPI2010");
|
||||
let notFoundTranslated = this.$ay.t("ErrorAPI2010");
|
||||
//format the message
|
||||
this.msg = "404 - " + notFoundTranslated + ': "' + badPath + '"';
|
||||
//log it in case we need to see it in tech support
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-file-archive",
|
||||
title: window.$gz.translation.get("Backup"),
|
||||
title: this.$ay.t("Backup"),
|
||||
helpUrl: "form-ops-backup"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-robot",
|
||||
title: window.$gz.translation.get("ServerJobs"),
|
||||
title: this.$ay.t("ServerJobs"),
|
||||
helpUrl: "form-ops-jobs"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-history",
|
||||
title: window.$gz.translation.get("ServerLog"),
|
||||
title: this.$ay.t("ServerLog"),
|
||||
helpUrl: "form-ops-log"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-file-medical-alt",
|
||||
title: window.$gz.translation.get("ServerMetrics"),
|
||||
title: this.$ay.t("ServerMetrics"),
|
||||
helpUrl: "form-ops-metrics"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-bullhorn",
|
||||
title: window.$gz.translation.get("NotificationSettings"),
|
||||
title: this.$ay.t("NotificationSettings"),
|
||||
helpUrl: "form-ops-notification-settings"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-file-contract",
|
||||
title: window.$gz.translation.get("ContractList"),
|
||||
title: this.$ay.t("ContractList"),
|
||||
helpUrl: "form-svc-contracts"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-child",
|
||||
title: window.$gz.translation.get("ClientServiceRequestList"),
|
||||
title: this.$ay.t("ClientServiceRequestList"),
|
||||
helpUrl: "form-svc-csr-list"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-plug",
|
||||
title: window.$gz.translation.get("LoanItemList"),
|
||||
title: this.$ay.t("LoanItemList"),
|
||||
helpUrl: "form-svc-loaners"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-business-time",
|
||||
title: window.$gz.translation.get("WorkorderPreventiveMaintenanceList"),
|
||||
title: this.$ay.t("WorkorderPreventiveMaintenanceList"),
|
||||
helpUrl: "form-svc-pm-list"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,9 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-stamp",
|
||||
title: window.$gz.translation.get(
|
||||
"WorkorderPreventiveMaintenanceTemplate"
|
||||
),
|
||||
title: this.$ay.t("WorkorderPreventiveMaintenanceTemplate"),
|
||||
helpUrl: "form-svc-pm-templates"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-stamp",
|
||||
title: window.$gz.translation.get("WorkorderQuoteTemplate"),
|
||||
title: this.$ay.t("WorkorderQuoteTemplate"),
|
||||
helpUrl: "form-svc-quote-templates"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-edit",
|
||||
title: window.$gz.translation.get("WorkorderQuoteList"),
|
||||
title: this.$ay.t("WorkorderQuoteList"),
|
||||
helpUrl: "form-svc-quotes"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-calendar-alt",
|
||||
title: window.$gz.translation.get("Schedule"),
|
||||
title: this.$ay.t("Schedule"),
|
||||
helpUrl: "form-svc-schedule"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-dice-d20",
|
||||
title: window.$gz.translation.get("UnitModels"),
|
||||
title: this.$ay.t("UnitModels"),
|
||||
helpUrl: "form-svc-unit-models"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-fan",
|
||||
title: window.$gz.translation.get("UnitList"),
|
||||
title: this.$ay.t("UnitList"),
|
||||
helpUrl: "form-svc-units"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-stamp",
|
||||
title: window.$gz.translation.get("WorkorderServiceTemplate"),
|
||||
title: this.$ay.t("WorkorderServiceTemplate"),
|
||||
helpUrl: "form-svc-workorder-templates"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-tools",
|
||||
title: window.$gz.translation.get("WorkorderServiceList"),
|
||||
title: this.$ay.t("WorkorderServiceList"),
|
||||
helpUrl: "form-svc-workorders"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-store",
|
||||
title: window.$gz.translation.get("VendorList"),
|
||||
title: this.$ay.t("VendorList"),
|
||||
helpUrl: "form-vendors"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -614,7 +614,7 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: false,
|
||||
icon: "fa-splotch",
|
||||
title: window.$gz.translation.get("Widget"),
|
||||
title: vm.$ay.t("Widget"),
|
||||
helpUrl: "form-widget",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.Widget,
|
||||
@@ -626,7 +626,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Save"),
|
||||
title: vm.$ay.t("Save"),
|
||||
icon: "fa-save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
@@ -636,7 +636,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.delete && vm.$route.params.recordid != 0) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Delete"),
|
||||
title: vm.$ay.t("Delete"),
|
||||
icon: "fa-trash-alt",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":delete",
|
||||
@@ -647,7 +647,7 @@ function generateMenu(vm) {
|
||||
//STUB REPORTS
|
||||
//Report not Print, print is a further option
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Report"),
|
||||
title: vm.$ay.t("Report"),
|
||||
icon: "fa-file-alt",
|
||||
key: FORM_KEY + ":report",
|
||||
vm: vm
|
||||
@@ -662,7 +662,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Duplicate"),
|
||||
title: vm.$ay.t("Duplicate"),
|
||||
icon: "fa-clone",
|
||||
key: FORM_KEY + ":duplicate",
|
||||
vm: vm
|
||||
|
||||
@@ -74,14 +74,14 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: true,
|
||||
icon: "fa-vial",
|
||||
title: window.$gz.translation.get("WidgetList"),
|
||||
title: vm.$ay.t("WidgetList"),
|
||||
helpUrl: "form-ay-data-list-view",
|
||||
menuItems: []
|
||||
};
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("New"),
|
||||
title: vm.$ay.t("New"),
|
||||
icon: "fa-plus",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":new",
|
||||
@@ -92,7 +92,7 @@ function generateMenu(vm) {
|
||||
//STUB REPORTS
|
||||
//Report not Print, print is a further option
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.translation.get("Report"),
|
||||
title: vm.$ay.t("Report"),
|
||||
icon: "fa-file-alt",
|
||||
key: FORM_KEY + ":report",
|
||||
vm: vm
|
||||
|
||||
Reference in New Issue
Block a user