Fix(frontend): ドライブクリーナーから画像を削除した際、リロードしなくても画面に反映されるよう修正 (#16888)
* ドライブクリーナーでファイル削除後、リロードなしで画面に反映されるように修正 * CHANGELOG.mdを修正 * CHANGELOGがおかしかったので修正
This commit is contained in:
parent
a33b003282
commit
bc78bb9b8e
|
|
@ -4,10 +4,10 @@
|
|||
-
|
||||
|
||||
### Client
|
||||
-
|
||||
- Fix: ドライブクリーナーでファイルを削除しても画面に反映されない問題を修正 #16061
|
||||
|
||||
### Server
|
||||
-
|
||||
-
|
||||
|
||||
|
||||
## 2025.12.2
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ import bytes from '@/filters/bytes.js';
|
|||
import { definePage } from '@/page.js';
|
||||
import MkSelect from '@/components/MkSelect.vue';
|
||||
import { useMkSelect } from '@/composables/use-mkselect.js';
|
||||
import { useGlobalEvent } from '@/events.js';
|
||||
import { getDriveFileMenu } from '@/utility/get-drive-file-menu.js';
|
||||
import { Paginator } from '@/utility/paginator.js';
|
||||
|
||||
|
|
@ -123,6 +124,12 @@ function onContextMenu(ev: MouseEvent, file): void {
|
|||
os.contextMenu(getDriveFileMenu(file), ev);
|
||||
}
|
||||
|
||||
useGlobalEvent('driveFilesDeleted', (files) => {
|
||||
for (const f of files) {
|
||||
paginator.removeItem(f.id);
|
||||
}
|
||||
});
|
||||
|
||||
definePage(() => ({
|
||||
title: i18n.ts.drivecleaner,
|
||||
icon: 'ti ti-trash',
|
||||
|
|
|
|||
Loading…
Reference in New Issue