Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lang/ar/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'duplicates-title' => 'تكرارات العنوان لكل ألبوم',
'duplicates-per-album' => 'التكرارات لكل ألبوم',
'show' => 'عرض التكرارات',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'إصلاح سجل الوظائف',
Expand Down
1 change: 1 addition & 0 deletions lang/cz/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
1 change: 1 addition & 0 deletions lang/de/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'duplicates-title' => 'Titel-Duplikate pro Album',
'duplicates-per-album' => 'Duplikate pro Album',
'show' => 'Duplikate anzeigen',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Korrigieren des Auftragsverlaufs',
Expand Down
1 change: 1 addition & 0 deletions lang/el/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
3 changes: 2 additions & 1 deletion lang/en/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
'title' => 'Duplicates',
'description' => 'This module counts potential duplicates betwen pictures.',
'duplicates-all' => 'Duplicates over all albums',
'duplicates-title' => 'Title duplicates per album',
'duplicates-title' => 'Title duplicates duplicate-finderper album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
1 change: 1 addition & 0 deletions lang/es/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'duplicates-title' => 'Títulos duplicados por álbum',
'duplicates-per-album' => 'Duplicados por álbum',
'show' => 'Mostrar duplicados',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Reparación del historial de trabajos',
Expand Down
1 change: 1 addition & 0 deletions lang/fa/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'duplicates-title' => 'موارد تکراری عنوان در هر آلبوم',
'duplicates-per-album' => 'موارد تکراری در هر آلبوم',
'show' => 'نمایش موارد تکراری',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'اصلاح تاریخچه وظایف',
Expand Down
1 change: 1 addition & 0 deletions lang/fr/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Doublons de titre par album',
'duplicates-per-album' => 'Doublons par album',
'show' => 'Afficher les doublons',
'load' => 'Compter les doublons',
],
'fix-jobs' => [
'title' => 'Correction de l’historique des tâches',
Expand Down
1 change: 1 addition & 0 deletions lang/hu/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
1 change: 1 addition & 0 deletions lang/it/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
1 change: 1 addition & 0 deletions lang/ja/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'ジョブ履歴の修正',
Expand Down
1 change: 1 addition & 0 deletions lang/nl/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'duplicates-title' => 'Titelduplicaten per album',
'duplicates-per-album' => 'Duplicaten per album',
'show' => 'Toon duplicaten',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Taakgeschiedenis herstellen',
Expand Down
1 change: 1 addition & 0 deletions lang/no/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Vis duplikater',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
1 change: 1 addition & 0 deletions lang/pl/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Duplikaty tytułów na album',
'duplicates-per-album' => 'Duplikaty na album',
'show' => 'Pokaż duplikaty',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Naprawianie historii zadań',
Expand Down
1 change: 1 addition & 0 deletions lang/pt/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
1 change: 1 addition & 0 deletions lang/ru/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'duplicates-title' => 'Дубликаты по заголовкам альбомов',
'duplicates-per-album' => 'Дубликаты по альбомам',
'show' => 'Показать дубликаты',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Исправление истории задач',
Expand Down
1 change: 1 addition & 0 deletions lang/sk/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
1 change: 1 addition & 0 deletions lang/sv/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
1 change: 1 addition & 0 deletions lang/vi/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
1 change: 1 addition & 0 deletions lang/zh_CN/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => '每个相册中的标题重复项',
'duplicates-per-album' => '每个相册中的重复项',
'show' => '显示重复项',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => '修复任务历史',
Expand Down
1 change: 1 addition & 0 deletions lang/zh_TW/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'duplicates-title' => 'Title duplicates per album',
'duplicates-per-album' => 'Duplicates per album',
'show' => 'Show duplicates',
'load' => 'Load counts',
],
'fix-jobs' => [
'title' => 'Fixing Jobs History',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{ $t("maintenance.duplicate-finder.duplicates-title") }}: {{ data.title_duplicates }}<br />
{{ $t("maintenance.duplicate-finder.duplicates-per-album") }}: {{ data.duplicates_within_album }}<br />
</p>
<ProgressSpinner v-if="data === undefined" class="w-full"></ProgressSpinner>
<ProgressSpinner v-if="data === undefined && isLoaded" class="w-full"></ProgressSpinner>
</div>
</div>
<div class="flex gap-4 mt-1">
Expand All @@ -31,27 +31,30 @@
>
{{ $t("maintenance.duplicate-finder.show") }}
</Button>
<Button v-if="!isLoaded" @click="load" severity="primary" class="w-full border-none self-end">
{{ $t("maintenance.duplicate-finder.load") }}
</Button>
</div>
</template>
</Card>
</template>

<script setup lang="ts">
import { ref, onMounted } from "vue";
import { ref } from "vue";
import Button from "primevue/button";
import Card from "primevue/card";
import ProgressSpinner from "primevue/progressspinner";
import MaintenanceService from "@/services/maintenance-service";
const data = ref<App.Http.Resources.Models.Duplicates.DuplicateCount | undefined>(undefined);
const isLoaded = ref(false);
function load() {
isLoaded.value = true;
MaintenanceService.getDuplicatesCount().then((response) => {
data.value = response.data;
});
}
onMounted(load);
</script>

<style lang="css" scoped>
Expand Down
Loading