Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bep/docuapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-11-16 20:22:43 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-11-16 20:22:43 +0300
commit16a76ca4dcbfbad40efa5597651ae951ff66e986 (patch)
tree77f6301ed90242cc8e2803942e681083a502c4d5
parent7fd543c4c43935c3ae94b06233c658afff1619df (diff)
Fix language filter on load, take 2
Fixes #74
-rw-r--r--assets/js/controllers/lang.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/assets/js/controllers/lang.js b/assets/js/controllers/lang.js
index 980eb3d..083acc0 100644
--- a/assets/js/controllers/lang.js
+++ b/assets/js/controllers/lang.js
@@ -22,9 +22,12 @@ export function newLangController() {
},
initLangs: function(tabs) {
debug('initLangs', tabs);
- this.changeLanguage(0);
tabs[0].active = true;
this.tabs = tabs;
+
+ return this.$nextTick(() => {
+ this.changeLanguage(0);
+ });
}
};
}