fix(file-mover): fix file mover never updating (#651)

This commit is contained in:
brios
2026-04-22 17:27:41 -04:00
committed by Zach Yale
parent 64b7a5c75e
commit d9d7a18d89
2 changed files with 48 additions and 35 deletions
@@ -26,7 +26,7 @@
</div>
<div class="banner-content">
<span class="banner-text">
Preview and organize <strong>{{ filePreviews.length }} file{{ filePreviews.length !== 1 ? 's' : '' }}</strong>.
Preview and organize <strong>{{ filePreviews().length }} file{{ filePreviews().length !== 1 ? 's' : '' }}</strong>.
Files will be renamed based on metadata and naming patterns.
</span>
<span class="banner-warning">
@@ -132,7 +132,7 @@
</div>
<div class="table-container">
<p-table
[value]="filePreviews"
[value]="filePreviews()"
[scrollable]="true"
scrollHeight="flex"
[virtualScroll]="true"
@@ -231,11 +231,11 @@
(click)="cancel()"
></p-button>
<p-button
[label]="loading ? 'Moving...' : 'Move Files'"
[icon]="loading ? 'pi pi-spin pi-spinner' : 'pi pi-check'"
[label]="loading() ? 'Moving...' : 'Move Files'"
[icon]="loading() ? 'pi pi-spin pi-spinner' : 'pi pi-check'"
severity="success"
(click)="saveChanges()"
[disabled]="loading || filePreviews.length === 0"
[disabled]="loading() || filePreviews().length === 0"
></p-button>
} @else {
<p-button