This commit is contained in:
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "calculator",
|
||||
title: window.$gz.locale.get("Accounting"),
|
||||
title: window.$gz.translation.get("Accounting"),
|
||||
helpUrl: "form-acc-accounting"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "folder",
|
||||
title: window.$gz.locale.get("Attachments"),
|
||||
title: window.$gz.translation.get("Attachments"),
|
||||
helpUrl: "form-adm-attachments"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "cogs",
|
||||
title: window.$gz.locale.get("AdministrationGlobalSettings"),
|
||||
title: window.$gz.translation.get("AdministrationGlobalSettings"),
|
||||
helpUrl: "form-adm-global-settings"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "history",
|
||||
title: window.$gz.locale.get("History"),
|
||||
title: window.$gz.translation.get("History"),
|
||||
helpUrl: "form-adm-history"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "ticket-alt",
|
||||
title: window.$gz.locale.get("HelpLicense"),
|
||||
title: window.$gz.translation.get("HelpLicense"),
|
||||
helpUrl: "form-adm-license"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "language",
|
||||
title: window.$gz.locale.get("LocalizedTextDesign"),
|
||||
title: window.$gz.translation.get("LocalizedTextDesign"),
|
||||
helpUrl: "form-adm-localized-text"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "th-list",
|
||||
title: window.$gz.locale.get("ReportList"),
|
||||
title: window.$gz.translation.get("ReportList"),
|
||||
helpUrl: "form-adm-report-templates"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "chart-line",
|
||||
title: window.$gz.locale.get("Statistics"),
|
||||
title: window.$gz.translation.get("Statistics"),
|
||||
helpUrl: "form-adm-statistics"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "users",
|
||||
title: window.$gz.locale.get("UserList"),
|
||||
title: window.$gz.translation.get("UserList"),
|
||||
helpUrl: "form-adm-users"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -27,25 +27,27 @@
|
||||
<div>
|
||||
<span class="ml-6 body-1">12h: </span>
|
||||
<span class="body-2">
|
||||
{{ locale().getHour12() }}
|
||||
{{ translation().getHour12() }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span class="ml-6 body-1">{{ lt("TimeZone") }}: </span>
|
||||
<span class="body-2">
|
||||
{{ locale().getBrowserTimeZoneName() }}
|
||||
{{ translation().getBrowserTimeZoneName() }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span class="ml-6 body-1">{{ lt("LanguageCode") }}: </span>
|
||||
<span class="body-2">{{ locale().getBrowserFirstLanguage() }}</span>
|
||||
<span class="body-2">{{
|
||||
translation().getBrowserFirstLanguage()
|
||||
}}</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span class="ml-6 body-1">{{ lt("CurrencyCode") }}: </span>
|
||||
<span class="body-2">{{ locale().getCurrencyName() }}</span>
|
||||
<span class="body-2">{{ translation().getCurrencyName() }}</span>
|
||||
</div>
|
||||
|
||||
<v-divider class="mt-6"></v-divider>
|
||||
@@ -167,10 +169,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
lt(ltKey) {
|
||||
return window.$gz.locale.get(ltKey);
|
||||
return window.$gz.translation.get(ltKey);
|
||||
},
|
||||
locale() {
|
||||
return window.$gz.locale;
|
||||
translation() {
|
||||
return window.$gz.translation;
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -182,18 +184,18 @@ function generateMenu(vm) {
|
||||
var menuOptions = {
|
||||
isMain: false,
|
||||
icon: "fa-info-circle",
|
||||
title: window.$gz.locale.get("HelpAboutAyaNova"),
|
||||
title: window.$gz.translation.get("HelpAboutAyaNova"),
|
||||
helpUrl: "form-ay-about",
|
||||
menuItems: [
|
||||
{
|
||||
title: window.$gz.locale.get("Copy"),
|
||||
title: window.$gz.translation.get("Copy"),
|
||||
icon: "copy",
|
||||
surface: true,
|
||||
key: "about:copysupportinfo",
|
||||
vm: vm
|
||||
},
|
||||
{
|
||||
title: window.$gz.locale.get("Log"),
|
||||
title: window.$gz.translation.get("Log"),
|
||||
icon: "glasses",
|
||||
surface: true,
|
||||
key: "app:nav:log",
|
||||
@@ -284,7 +286,7 @@ function fetchUILocalizedText(vm) {
|
||||
"CurrencyCode"
|
||||
];
|
||||
|
||||
return window.$gz.locale.fetch(ltKeysRequired);
|
||||
return window.$gz.translation.fetch(ltKeysRequired);
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "paperclip",
|
||||
title: window.$gz.locale.get("Attachments"),
|
||||
title: window.$gz.translation.get("Attachments"),
|
||||
helpUrl: "form-ay-attachments"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
lt: function(ltkey) {
|
||||
return window.$gz.locale.get(ltkey);
|
||||
return window.$gz.translation.get(ltkey);
|
||||
},
|
||||
visibleChanged: function(item) {
|
||||
//Note: stock items can't be changed so no need to take that into account
|
||||
@@ -298,7 +298,7 @@ function generateMenu(vm) {
|
||||
var menuOptions = {
|
||||
isMain: false,
|
||||
icon: "fa-sliders-h",
|
||||
title: window.$gz.locale.get("Customize"),
|
||||
title: window.$gz.translation.get("Customize"),
|
||||
helpUrl: "form-ay-customize",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.FormCustom,
|
||||
@@ -309,7 +309,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Save"),
|
||||
title: window.$gz.translation.get("Save"),
|
||||
icon: "save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
@@ -320,7 +320,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.locale.get("LocalizedTextDesign"),
|
||||
title: window.$gz.translation.get("LocalizedTextDesign"),
|
||||
icon: "language",
|
||||
data: "adm-localized-text",
|
||||
key: "app:nav"
|
||||
@@ -367,7 +367,7 @@ function fetchUILocalizedText(vm) {
|
||||
"UiFieldDataTypesTrueFalse"
|
||||
];
|
||||
|
||||
return window.$gz.locale.fetch(ltKeysRequired);
|
||||
return window.$gz.translation.fetch(ltKeysRequired);
|
||||
}
|
||||
|
||||
/////////////////////////////////
|
||||
@@ -435,7 +435,7 @@ function initDataObject(vm) {
|
||||
|
||||
var objItem = {
|
||||
key: faf.fieldKey,
|
||||
title: window.$gz.locale.get(faf.ltKey),
|
||||
title: window.$gz.translation.get(faf.ltKey),
|
||||
stockRequired: !faf.hideable,
|
||||
custom: faf.isCustomField,
|
||||
required: faf.hideable === false || templateItem.required === true,
|
||||
|
||||
@@ -559,7 +559,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
lt: function(ltkey) {
|
||||
return window.$gz.locale.get(ltkey);
|
||||
return window.$gz.translation.get(ltkey);
|
||||
},
|
||||
enumPickList: function(enumKey) {
|
||||
return window.$gz.enums.getPickList(enumKey);
|
||||
@@ -931,7 +931,7 @@ function generateMenu(vm) {
|
||||
var menuOptions = {
|
||||
isMain: false,
|
||||
icon: "filter",
|
||||
title: window.$gz.locale.get("DataListView"),
|
||||
title: window.$gz.translation.get("DataListView"),
|
||||
helpUrl: "form-ay-data-list-view",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.FormCustom,
|
||||
@@ -942,7 +942,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Save"),
|
||||
title: window.$gz.translation.get("Save"),
|
||||
icon: "save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
@@ -951,7 +951,7 @@ function generateMenu(vm) {
|
||||
}
|
||||
if (vm.rights.delete) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Delete"),
|
||||
title: window.$gz.translation.get("Delete"),
|
||||
icon: "trash-alt",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":delete",
|
||||
@@ -960,7 +960,7 @@ function generateMenu(vm) {
|
||||
}
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Duplicate"),
|
||||
title: window.$gz.translation.get("Duplicate"),
|
||||
icon: "clone",
|
||||
key: FORM_KEY + ":duplicate",
|
||||
vm: vm
|
||||
@@ -979,7 +979,7 @@ function initForm(vm) {
|
||||
await fetchUILocalizedText(vm);
|
||||
await populatePickLists(vm);
|
||||
await populateFieldDefinitions(vm);
|
||||
await fetchLocalizedFieldNames(vm);
|
||||
await fetchTranslatedFieldNames(vm);
|
||||
await setEffectiveListView(vm);
|
||||
await initDataObject(vm);
|
||||
await fetchEnums(vm);
|
||||
@@ -1043,7 +1043,7 @@ function fetchUILocalizedText(vm) {
|
||||
"Name"
|
||||
];
|
||||
|
||||
return window.$gz.locale.fetch(ltKeysRequired);
|
||||
return window.$gz.translation.fetch(ltKeysRequired);
|
||||
}
|
||||
|
||||
/////////////////////////////////
|
||||
@@ -1210,16 +1210,16 @@ function populateFieldDefinitions(vm) {
|
||||
|
||||
//////////////////////////////////////////////////////////
|
||||
//
|
||||
// Ensures column names are present in locale table
|
||||
// Ensures column names are present in translation table
|
||||
//
|
||||
function fetchLocalizedFieldNames(vm) {
|
||||
function fetchTranslatedFieldNames(vm) {
|
||||
var columnKeys = [];
|
||||
for (var i = 1; i < vm.fieldDefinitions.length; i++) {
|
||||
var cm = vm.fieldDefinitions[i];
|
||||
columnKeys.push(cm.ltKey);
|
||||
}
|
||||
//Now fetch all the keys and await the response before returning
|
||||
return window.$gz.locale.fetch(columnKeys).then(() => {
|
||||
return window.$gz.translation.fetch(columnKeys).then(() => {
|
||||
return;
|
||||
});
|
||||
}
|
||||
@@ -1462,15 +1462,15 @@ function getDisplayForFilter(
|
||||
var valueDisplay = "selected value";
|
||||
switch (uiFieldDataType) {
|
||||
case 1: //date localize
|
||||
valueDisplay = window.$gz.locale.utcDateToShortDateAndTimeLocalized(
|
||||
valueDisplay = window.$gz.translation.utcDateToShortDateAndTimeLocalized(
|
||||
filterValue
|
||||
);
|
||||
break;
|
||||
case 8: //currency localize
|
||||
valueDisplay = window.$gz.locale.currencyLocalized(filterValue);
|
||||
valueDisplay = window.$gz.translation.currencyLocalized(filterValue);
|
||||
break;
|
||||
case 7: //decimal localize
|
||||
valueDisplay = window.$gz.locale.decimalLocalized(filterValue);
|
||||
valueDisplay = window.$gz.translation.decimalLocalized(filterValue);
|
||||
break;
|
||||
case 6: //BOOL localize
|
||||
//debugger;
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "history",
|
||||
title: window.$gz.locale.get("History"),
|
||||
title: window.$gz.translation.get("History"),
|
||||
helpUrl: "form-ay-history"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -26,12 +26,12 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: false,
|
||||
icon: "fa-info-circle",
|
||||
title: window.$gz.locale.get("Log"),
|
||||
title: window.$gz.translation.get("Log"),
|
||||
helpUrl: "form-ay-log",
|
||||
|
||||
menuItems: [
|
||||
// {
|
||||
// title: window.$gz.locale.get("Log"),
|
||||
// title: window.$gz.translation.get("Log"),
|
||||
// icon: "glasses",
|
||||
// surface: true,
|
||||
// key: "app:nav:log",
|
||||
@@ -47,7 +47,7 @@ export default {
|
||||
outText += value + "\n";
|
||||
});
|
||||
this.logText = outText;
|
||||
window.$gz.locale
|
||||
window.$gz.translation
|
||||
.fetch(["Log"])
|
||||
.then(() => (vm.formState.ready = true))
|
||||
.catch(err => {
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "calendar-check",
|
||||
title: window.$gz.locale.get("Review"),
|
||||
title: window.$gz.translation.get("Review"),
|
||||
helpUrl: "form-ay-review"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "feather",
|
||||
title: window.$gz.locale.get("WikiPage"),
|
||||
title: window.$gz.translation.get("WikiPage"),
|
||||
helpUrl: "form-ay-wiki"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "address-card",
|
||||
title: window.$gz.locale.get("ClientList"),
|
||||
title: window.$gz.translation.get("ClientList"),
|
||||
helpUrl: "form-cust-customers"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "sitemap",
|
||||
title: window.$gz.locale.get("HeadOfficeList"),
|
||||
title: window.$gz.translation.get("HeadOfficeList"),
|
||||
helpUrl: "form-cust-headoffices"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "child",
|
||||
title: window.$gz.locale.get("ClientServiceRequestList"),
|
||||
title: window.$gz.translation.get("ClientServiceRequestList"),
|
||||
helpUrl: "form-customer-csr-list"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "tools",
|
||||
title: window.$gz.locale.get("WorkorderServiceList"),
|
||||
title: window.$gz.translation.get("WorkorderServiceList"),
|
||||
helpUrl: "form-customer-workorders"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "tachometer-alt",
|
||||
title: window.$gz.locale.get("Dashboard"),
|
||||
title: window.$gz.translation.get("Dashboard"),
|
||||
helpUrl: "form-home-dashboard"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "inbox",
|
||||
title: window.$gz.locale.get("MemoList"),
|
||||
title: window.$gz.translation.get("MemoList"),
|
||||
helpUrl: "form-home-memos"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "bullhorn",
|
||||
title: window.$gz.locale.get("NotifySubscriptionList"),
|
||||
title: window.$gz.translation.get("NotifySubscriptionList"),
|
||||
helpUrl: "form-home-notify-subscriptions"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -188,10 +188,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
lt(ltKey) {
|
||||
return window.$gz.locale.get(ltKey);
|
||||
return window.$gz.translation.get(ltKey);
|
||||
},
|
||||
locale() {
|
||||
return window.$gz.locale;
|
||||
translation() {
|
||||
return window.$gz.translation;
|
||||
},
|
||||
form() {
|
||||
return window.$gz.form;
|
||||
@@ -266,14 +266,14 @@ function generateMenu(vm) {
|
||||
var menuOptions = {
|
||||
isMain: true,
|
||||
icon: "key",
|
||||
title: window.$gz.locale.get("SetLoginPassword"),
|
||||
title: window.$gz.translation.get("SetLoginPassword"),
|
||||
helpUrl: "form-home-password",
|
||||
menuItems: []
|
||||
};
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Save"),
|
||||
title: window.$gz.translation.get("Save"),
|
||||
icon: "save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
@@ -305,7 +305,7 @@ function initForm(vm) {
|
||||
// Ensures UI localized text is available
|
||||
//
|
||||
function fetchUILocalizedText(vm) {
|
||||
return window.$gz.locale.fetch([
|
||||
return window.$gz.translation.fetch([
|
||||
"UserLogin",
|
||||
"OldPassword",
|
||||
"NewPassword",
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "sticky-note",
|
||||
title: window.$gz.locale.get("ReminderList"),
|
||||
title: window.$gz.translation.get("ReminderList"),
|
||||
helpUrl: "form-home-reminders"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "calendar-day",
|
||||
title: window.$gz.locale.get("Schedule"),
|
||||
title: window.$gz.translation.get("Schedule"),
|
||||
helpUrl: "form-home-schedule"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "search",
|
||||
title: window.$gz.locale.get("Search"),
|
||||
title: window.$gz.translation.get("Search"),
|
||||
helpUrl: "form-home-search"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "language",
|
||||
title: window.$gz.locale.get("Locale"),
|
||||
title: window.$gz.translation.get("Locale"),
|
||||
helpUrl: "form-home-locale"
|
||||
});
|
||||
}
|
||||
@@ -73,7 +73,7 @@
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-text-field
|
||||
v-model="obj.languageOverride"
|
||||
:placeholder="locale().getBrowserFirstLanguage()"
|
||||
:placeholder="translation().getBrowserFirstLanguage()"
|
||||
:readonly="formState.readOnly"
|
||||
clearable
|
||||
@click:clear="onChange('languageOverride')"
|
||||
@@ -87,7 +87,7 @@
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-text-field
|
||||
v-model="obj.timeZoneOverride"
|
||||
:placeholder="locale().getBrowserTimeZoneName()"
|
||||
:placeholder="translation().getBrowserTimeZoneName()"
|
||||
:readonly="formState.readOnly"
|
||||
clearable
|
||||
@click:clear="onChange('timeZoneOverride')"
|
||||
@@ -208,10 +208,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
lt(ltKey) {
|
||||
return window.$gz.locale.get(ltKey);
|
||||
return window.$gz.translation.get(ltKey);
|
||||
},
|
||||
locale() {
|
||||
return window.$gz.locale;
|
||||
translation() {
|
||||
return window.$gz.translation;
|
||||
},
|
||||
form() {
|
||||
return window.$gz.form;
|
||||
@@ -357,7 +357,7 @@ function generateMenu(vm) {
|
||||
var menuOptions = {
|
||||
isMain: true,
|
||||
icon: "user-cog",
|
||||
title: window.$gz.locale.get("UserSettings"),
|
||||
title: window.$gz.translation.get("UserSettings"),
|
||||
helpUrl: "form-home-user-settings",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.UserOptions
|
||||
@@ -367,7 +367,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Save"),
|
||||
title: window.$gz.translation.get("Save"),
|
||||
icon: "save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
@@ -377,7 +377,7 @@ function generateMenu(vm) {
|
||||
|
||||
//change password and login
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("SetLoginPassword"),
|
||||
title: window.$gz.translation.get("SetLoginPassword"),
|
||||
icon: "key",
|
||||
data: "home-password",
|
||||
key: "app:nav"
|
||||
@@ -409,7 +409,7 @@ function initForm(vm) {
|
||||
// Ensures UI localized text is available
|
||||
//
|
||||
function fetchUILocalizedText(vm) {
|
||||
return window.$gz.locale.fetch([
|
||||
return window.$gz.translation.fetch([
|
||||
"CurrencyCode",
|
||||
"LanguageCode",
|
||||
"TimeZone",
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "dolly",
|
||||
title: window.$gz.locale.get("InventoryPartInventoryAdjustments"),
|
||||
title: window.$gz.translation.get("InventoryPartInventoryAdjustments"),
|
||||
helpUrl: "form-inv-adjustments"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "pallet",
|
||||
title: window.$gz.locale.get("PartByWarehouseInventoryList"),
|
||||
title: window.$gz.translation.get("PartByWarehouseInventoryList"),
|
||||
helpUrl: "form-inv-part-inventory"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "paper-plane",
|
||||
title: window.$gz.locale.get("WorkorderItemPartRequestList"),
|
||||
title: window.$gz.translation.get("WorkorderItemPartRequestList"),
|
||||
helpUrl: "form-inv-part-requests"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "boxes",
|
||||
title: window.$gz.locale.get("PartList"),
|
||||
title: window.$gz.translation.get("PartList"),
|
||||
helpUrl: "form-inv-parts"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "dolly-flatbed",
|
||||
title: window.$gz.locale.get("InventoryPurchaseOrderReceipts"),
|
||||
title: window.$gz.translation.get("InventoryPurchaseOrderReceipts"),
|
||||
helpUrl: "form-inv-purchase-order-receipts"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "shipping-fast",
|
||||
title: window.$gz.locale.get("InventoryPurchaseOrders"),
|
||||
title: window.$gz.translation.get("InventoryPurchaseOrders"),
|
||||
helpUrl: "form-inv-purchase-orders"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -28,12 +28,12 @@ export default {
|
||||
!window ||
|
||||
!window.$gz ||
|
||||
!window.$gz.eventBus ||
|
||||
!window.$gz.locale ||
|
||||
!window.$gz.translation ||
|
||||
!window.$gz.store
|
||||
) {
|
||||
this.msg = '404 - NOT FOUND: "' + badPath + '"';
|
||||
} else {
|
||||
var notFoundLocalized = window.$gz.locale.get("ErrorAPI2010");
|
||||
var notFoundLocalized = window.$gz.translation.get("ErrorAPI2010");
|
||||
//format the message
|
||||
this.msg = "404 - " + notFoundLocalized + ': "' + 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: "file-archive",
|
||||
title: window.$gz.locale.get("Backup"),
|
||||
title: window.$gz.translation.get("Backup"),
|
||||
helpUrl: "form-ops-backup"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "robot",
|
||||
title: window.$gz.locale.get("ServerJobs"),
|
||||
title: window.$gz.translation.get("ServerJobs"),
|
||||
helpUrl: "form-ops-jobs"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "history",
|
||||
title: window.$gz.locale.get("ServerLog"),
|
||||
title: window.$gz.translation.get("ServerLog"),
|
||||
helpUrl: "form-ops-log"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "file-medical-alt",
|
||||
title: window.$gz.locale.get("ServerMetrics"),
|
||||
title: window.$gz.translation.get("ServerMetrics"),
|
||||
helpUrl: "form-ops-metrics"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "bullhorn",
|
||||
title: window.$gz.locale.get("NotificationSettings"),
|
||||
title: window.$gz.translation.get("NotificationSettings"),
|
||||
helpUrl: "form-ops-notification-settings"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "file-contract",
|
||||
title: window.$gz.locale.get("ContractList"),
|
||||
title: window.$gz.translation.get("ContractList"),
|
||||
helpUrl: "form-svc-contracts"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "child",
|
||||
title: window.$gz.locale.get("ClientServiceRequestList"),
|
||||
title: window.$gz.translation.get("ClientServiceRequestList"),
|
||||
helpUrl: "form-svc-csr-list"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "plug",
|
||||
title: window.$gz.locale.get("LoanItemList"),
|
||||
title: window.$gz.translation.get("LoanItemList"),
|
||||
helpUrl: "form-svc-loaners"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "business-time",
|
||||
title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
|
||||
title: window.$gz.translation.get("WorkorderPreventiveMaintenanceList"),
|
||||
helpUrl: "form-svc-pm-list"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,9 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "stamp",
|
||||
title: window.$gz.locale.get("WorkorderPreventiveMaintenanceTemplate"),
|
||||
title: window.$gz.translation.get(
|
||||
"WorkorderPreventiveMaintenanceTemplate"
|
||||
),
|
||||
helpUrl: "form-svc-pm-templates"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "stamp",
|
||||
title: window.$gz.locale.get("WorkorderQuoteTemplate"),
|
||||
title: window.$gz.translation.get("WorkorderQuoteTemplate"),
|
||||
helpUrl: "form-svc-quote-templates"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "edit",
|
||||
title: window.$gz.locale.get("WorkorderQuoteList"),
|
||||
title: window.$gz.translation.get("WorkorderQuoteList"),
|
||||
helpUrl: "form-svc-quotes"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "calendar-alt",
|
||||
title: window.$gz.locale.get("Schedule"),
|
||||
title: window.$gz.translation.get("Schedule"),
|
||||
helpUrl: "form-svc-schedule"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "dice-d20",
|
||||
title: window.$gz.locale.get("UnitModels"),
|
||||
title: window.$gz.translation.get("UnitModels"),
|
||||
helpUrl: "form-svc-unit-models"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fan",
|
||||
title: window.$gz.locale.get("UnitList"),
|
||||
title: window.$gz.translation.get("UnitList"),
|
||||
helpUrl: "form-svc-units"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "stamp",
|
||||
title: window.$gz.locale.get("WorkorderServiceTemplate"),
|
||||
title: window.$gz.translation.get("WorkorderServiceTemplate"),
|
||||
helpUrl: "form-svc-workorder-templates"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "tools",
|
||||
title: window.$gz.locale.get("WorkorderServiceList"),
|
||||
title: window.$gz.translation.get("WorkorderServiceList"),
|
||||
helpUrl: "form-svc-workorders"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ export default {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "store",
|
||||
title: window.$gz.locale.get("VendorList"),
|
||||
title: window.$gz.translation.get("VendorList"),
|
||||
helpUrl: "form-vendors"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -348,10 +348,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
lt(ltKey) {
|
||||
return window.$gz.locale.get(ltKey);
|
||||
return window.$gz.translation.get(ltKey);
|
||||
},
|
||||
locale() {
|
||||
return window.$gz.locale;
|
||||
translation() {
|
||||
return window.$gz.translation;
|
||||
},
|
||||
form() {
|
||||
return window.$gz.form;
|
||||
@@ -585,7 +585,7 @@ function generateMenu(vm) {
|
||||
var menuOptions = {
|
||||
isMain: false,
|
||||
icon: "fa-splotch",
|
||||
title: window.$gz.locale.get("Widget"),
|
||||
title: window.$gz.translation.get("Widget"),
|
||||
helpUrl: "form-widget",
|
||||
formData: {
|
||||
ayaType: window.$gz.type.Widget,
|
||||
@@ -597,7 +597,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Save"),
|
||||
title: window.$gz.translation.get("Save"),
|
||||
icon: "save",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":save",
|
||||
@@ -607,7 +607,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.delete) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Delete"),
|
||||
title: window.$gz.translation.get("Delete"),
|
||||
icon: "trash-alt",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":delete",
|
||||
@@ -618,7 +618,7 @@ function generateMenu(vm) {
|
||||
//STUB REPORTS
|
||||
//Report not Print, print is a further option
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Report"),
|
||||
title: window.$gz.translation.get("Report"),
|
||||
icon: "file-alt",
|
||||
key: FORM_KEY + ":report",
|
||||
vm: vm
|
||||
@@ -633,7 +633,7 @@ function generateMenu(vm) {
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Duplicate"),
|
||||
title: window.$gz.translation.get("Duplicate"),
|
||||
icon: "clone",
|
||||
key: FORM_KEY + ":duplicate",
|
||||
vm: vm
|
||||
@@ -668,7 +668,7 @@ function initForm(vm) {
|
||||
// Ensures UI localized text is available
|
||||
//
|
||||
function fetchUILocalizedText(vm) {
|
||||
return window.$gz.locale.fetch([
|
||||
return window.$gz.translation.fetch([
|
||||
"Widget",
|
||||
"WidgetName",
|
||||
"WidgetSerial",
|
||||
|
||||
@@ -74,14 +74,14 @@ function generateMenu(vm) {
|
||||
var menuOptions = {
|
||||
isMain: true,
|
||||
icon: "vial",
|
||||
title: window.$gz.locale.get("WidgetList"),
|
||||
title: window.$gz.translation.get("WidgetList"),
|
||||
helpUrl: "form-ay-data-list-view",
|
||||
menuItems: []
|
||||
};
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("New"),
|
||||
title: window.$gz.translation.get("New"),
|
||||
icon: "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.locale.get("Report"),
|
||||
title: window.$gz.translation.get("Report"),
|
||||
icon: "file-alt",
|
||||
key: FORM_KEY + ":report",
|
||||
vm: vm
|
||||
|
||||
Reference in New Issue
Block a user