refactor: cleanup
This commit is contained in:
@@ -23,6 +23,15 @@ export default class MangaUpdatesUpdater extends Vue {
|
|||||||
return new ServiceStore();
|
return new ServiceStore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get progressStyle(): any {
|
||||||
|
if (this.progressValue === null || this.progressMax === null) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
'--progress-value': this.progressValue / this.progressMax,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
//event handler
|
//event handler
|
||||||
async onUpdateMangaUpdatesDb(): Promise<void> {
|
async onUpdateMangaUpdatesDb(): Promise<void> {
|
||||||
this.progressType = 'starting';
|
this.progressType = 'starting';
|
||||||
@@ -58,15 +67,6 @@ export default class MangaUpdatesUpdater extends Vue {
|
|||||||
this.progressValue = null;
|
this.progressValue = null;
|
||||||
this.progressMax = null;
|
this.progressMax = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
get progressStyle(): any {
|
|
||||||
if (this.progressValue === null || this.progressMax === null) {
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
'--progress-value': this.progressValue / this.progressMax,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user