This commit is contained in:
2020-06-29 22:47:33 +00:00
parent 7b5867df23
commit 95f39bc349

View File

@@ -17,7 +17,7 @@ export default {
async created() { async created() {
this.rights = window.$gz.role.getRights(window.$gz.type.FileAttachment); this.rights = window.$gz.role.getRights(window.$gz.type.FileAttachment);
window.$gz.eventBus.$on("menu-click", clickHandler); window.$gz.eventBus.$on("menu-click", clickHandler);
await fetchTranslatedText(this); //await fetchTranslatedText(this);
generateMenu(this); generateMenu(this);
}, },
beforeDestroy() { beforeDestroy() {
@@ -95,11 +95,11 @@ function generateMenu(vm) {
window.$gz.eventBus.$emit("menu-change", menuOptions); window.$gz.eventBus.$emit("menu-change", menuOptions);
} }
////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////
// // //
// Ensures UI translated text is available // // Ensures UI translated text is available
// // //
async function fetchTranslatedText(vm) { // async function fetchTranslatedText(vm) {
await window.$gz.translation.cacheTranslations(["ReadOnly"]); // await window.$gz.translation.cacheTranslations([""]);
} // }
</script> </script>