refactor: cleanup
This commit is contained in:
@@ -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