refactor: cleanup
This commit is contained in:
1 parent
ba45edba9e
commit
baea085def
1 file changed
+9
-9
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user