refactor: cleanup

This commit is contained in:
wea_ondara
2023-10-06 19:33:26 +02:00
parent ba45edba9e
commit baea085def

View File

@@ -23,6 +23,15 @@ export default class MangaUpdatesUpdater extends Vue {
return new ServiceStore();
}
get progressStyle(): any {
if (this.progressValue === null || this.progressMax === null) {
return {};
}
return {
'--progress-value': this.progressValue / this.progressMax,
};
}
//event handler
async onUpdateMangaUpdatesDb(): Promise<void> {
this.progressType = 'starting';
@@ -58,15 +67,6 @@ export default class MangaUpdatesUpdater extends Vue {
this.progressValue = null;
this.progressMax = null;
}
get progressStyle(): any {
if (this.progressValue === null || this.progressMax === null) {
return {};
}
return {
'--progress-value': this.progressValue / this.progressMax,
};
}
}
</script>