This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user