moved t function to global and misc cleanup

This commit is contained in:
2020-04-04 17:06:25 +00:00
parent 90c388ecc2
commit 43de3c8fb0
20 changed files with 242 additions and 286 deletions

View File

@@ -22,7 +22,7 @@
:items="selectLists.pickListTemplates"
item-text="name"
item-value="id"
:label="t('PickListTemplates')"
:label="$ay.t('PickListTemplates')"
@input="templateSelected"
>
</v-select>
@@ -51,7 +51,7 @@
<v-checkbox
v-model="item.include"
:readOnly="formState.readOnly"
:label="t('Include')"
:label="$ay.t('Include')"
:ref="item.key"
:disabled="item.required"
@change="includeChanged(item)"
@@ -183,9 +183,6 @@ export default {
}
},
methods: {
t: function(tKey) {
return window.$gz.translation.get(tKey);
},
includeChanged: function(item) {
window.$gz.form.setFormState({
vm: this,
@@ -503,7 +500,7 @@ function synthesizeWorkingArray(vm) {
key: afItem.fieldKey,
required: afItem.isRowId == true,
include: true,
title: vm.t(afItem.tKey)
title: vm.$ay.t(afItem.tKey)
});
}
}
@@ -525,7 +522,7 @@ function synthesizeWorkingArray(vm) {
key: afItem.fieldKey,
required: afItem.isRowId == true,
include: false,
title: vm.t(afItem.tKey)
title: vm.$ay.t(afItem.tKey)
});
}
}