Skip to content

Commit 1846f48

Browse files
committed
Fix recurring config load
1 parent 1e48360 commit 1846f48

File tree

4 files changed

+38589
-4
lines changed

4 files changed

+38589
-4
lines changed

resources/assets/js/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const app = new Vue({
4545
'config': {
4646
deep: true,
4747
handler: function () {
48+
if(this.loadingConfig) return;
4849
this.writeConfig(this.config)
4950
}
5051
}
@@ -123,7 +124,11 @@ const app = new Vue({
123124
return this.config.toHumanReadable(input);
124125
},
125126
setConfig(config) {
127+
this.loadingConfig = true;
126128
this.config = Object.assign(new Config, config);
129+
setTimeout(() => {
130+
this.loadingConfig = false;
131+
}, 100);
127132
},
128133
moment(input) {
129134
return moment(input);

0 commit comments

Comments
 (0)