This commit is contained in:
wea_ondara
2023-09-28 19:16:46 +02:00
parent 12bd71368c
commit 3c66c367ef

View File

@@ -50,20 +50,18 @@ export default class MangaUpdatesUpdater extends Vue {
</script> </script>
<template> <template>
<div class="d-flex flex-row"> <button :disabled="!!progressType" class="btn btn-secondary" @click="onUpdateMangaUpdatesDb">
<button :disabled="!!progressType" class="btn btn-secondary" @click="onUpdateMangaUpdatesDb"> <i v-if="!progressType" class="fa fa-refresh"/>
<i v-if="!progressType" class="fa fa-refresh"/> <template v-else>
<template v-else> <span class="text-nowrap">
<span class="text-nowrap"> <BSpinner small class="me-2"/>
<BSpinner small class="me-2"/> <template v-if="progressValue === null || progressMax === null">
<template v-if="progressValue === null || progressMax === null"> {{ $t('fetch.mangaUpdates.' + progressType) }}
{{ $t('fetch.mangaUpdates.' + progressType) }} </template>
</template> <template v-else>
<template v-else> {{ $t('fetch.mangaUpdates.' + progressType) + ': ' + (progressValue ?? 0) + '/' + (progressMax ?? 1) }}
{{ $t('fetch.mangaUpdates.' + progressType) + ': ' + (progressValue ?? 0) + '/' + (progressMax ?? 1) }} </template>
</template> </span>
</span> </template>
</template> </button>
</button>
</div>
</template> </template>