This commit is contained in:
@@ -8,6 +8,7 @@ const MaxLogLength = 100;
|
||||
Vue.use(Vuex);
|
||||
|
||||
//reset all local settings via url in case of fucked up situation
|
||||
//localhost:8080/login?reset
|
||||
if (window.location.search) {
|
||||
var searchParams = new URLSearchParams(window.location.search);
|
||||
if (searchParams.has("reset")) {
|
||||
|
||||
@@ -404,13 +404,14 @@ async function fetchTranslatedFieldNames(vm) {
|
||||
let columnKeys = [];
|
||||
for (let i = 0; i < vm.fieldDefinitions.length; i++) {
|
||||
let cm = vm.fieldDefinitions[i];
|
||||
columnKeys.push(cm.tKey);
|
||||
if (!columnKeys.includes(cm.tKey)) {
|
||||
columnKeys.push(cm.tKey);
|
||||
}
|
||||
//get section names too if present
|
||||
if (cm.tKeySection != null) {
|
||||
if (cm.tKeySection != null && !columnKeys.includes(cm.tKeySection)) {
|
||||
columnKeys.push(cm.tKeySection);
|
||||
}
|
||||
}
|
||||
|
||||
await window.$gz.translation.cacheTranslations(columnKeys);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user