No hard refresh on config change
parent
1c85034851
commit
24d7afcbe8
|
@ -99,7 +99,6 @@ export default class Settings extends Mixins(UserConfig, GlobalMixin) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async updateSquareThumbs() {
|
async updateSquareThumbs() {
|
||||||
console.error('updateSquareThumbs', this.config_squareThumbs);
|
|
||||||
await this.updateSetting('squareThumbs');
|
await this.updateSetting('squareThumbs');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
<OnThisDay v-if="$route.name === 'timeline'"
|
<OnThisDay v-if="$route.name === 'timeline'"
|
||||||
:viewerManager="viewerManager"
|
:viewerManager="viewerManager"
|
||||||
|
:key="config_timelinePath"
|
||||||
@load="scrollerManager.adjust()">
|
@load="scrollerManager.adjust()">
|
||||||
</OnThisDay>
|
</OnThisDay>
|
||||||
</div>
|
</div>
|
||||||
|
@ -207,12 +208,12 @@ export default class Timeline extends Mixins(GlobalMixin, UserConfig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
unsubscribe(this.config_eventName, this.refresh);
|
unsubscribe(this.config_eventName, this.softRefresh);
|
||||||
this.resetState();
|
this.resetState();
|
||||||
}
|
}
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
subscribe(this.config_eventName, this.refresh);
|
subscribe(this.config_eventName, this.softRefresh);
|
||||||
window.addEventListener("resize", this.handleResizeWithDelay);
|
window.addEventListener("resize", this.handleResizeWithDelay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue