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

@@ -3,7 +3,7 @@
<gz-pick-list
v-model="selectedWidget"
:ayaType="ayaType().Widget"
:label="t('Widget')"
:label="$ay.t('Widget')"
:showEditIcon="true"
>
</gz-pick-list>
@@ -11,7 +11,7 @@
<gz-pick-list
v-model="selectedUser"
:ayaType="ayaType().User"
:label="t('User')"
:label="$ay.t('User')"
>
</gz-pick-list>
<v-divider></v-divider>
@@ -52,9 +52,6 @@ export default {
};
},
methods: {
t: function(tKey) {
return window.$gz.translation.get(tKey);
},
ayaType: function() {
return window.$gz.type;
}