No hard refresh on config change

old-stable24
Varun Patil 2022-10-24 19:06:58 -07:00
parent 1c85034851
commit 24d7afcbe8
2 changed files with 3 additions and 3 deletions

View File

@ -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');
} }

View File

@ -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);
} }