This commit is contained in:
@@ -336,6 +336,10 @@ export default {
|
||||
vm.obj.concurrency = res.data.concurrency;
|
||||
|
||||
//Update local copy of translations if that's the same one in use
|
||||
console.log(
|
||||
"Editing active translation=",
|
||||
vm.editingActiveTranslation
|
||||
);
|
||||
if (vm.editingActiveTranslation) {
|
||||
await window.$gz.translation.updateCache(vm.obj);
|
||||
}
|
||||
@@ -588,8 +592,9 @@ async function fetchTranslatedText(vm) {
|
||||
async function setEditingActiveTranslation(vm) {
|
||||
if (vm.$route.params.recordid != 0) {
|
||||
let res = await window.$gz.api.get("user-option/" + vm.$store.state.userId);
|
||||
|
||||
vm.editingActiveTranslation =
|
||||
res.translationId == vm.$route.params.recordid;
|
||||
res.data.translationId == vm.$route.params.recordid;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user