mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 01:11:07 +03:00
feat(server): library cleanup from ui (#16226)
* feat(server,web): scan all libraries from frontend * feat(server,web): scan all libraries from frontend * Add button text
This commit is contained in:
committed by
GitHub
parent
8885e3105e
commit
869839f642
@@ -22,7 +22,10 @@
|
||||
getAllLibraries,
|
||||
getLibraryStatistics,
|
||||
getUserAdmin,
|
||||
JobCommand,
|
||||
JobName,
|
||||
scanLibrary,
|
||||
sendJobCommand,
|
||||
updateLibrary,
|
||||
type LibraryResponseDto,
|
||||
type LibraryStatsResponseDto,
|
||||
@@ -151,9 +154,8 @@
|
||||
|
||||
const handleScanAll = async () => {
|
||||
try {
|
||||
for (const library of libraries) {
|
||||
await scanLibrary({ id: library.id });
|
||||
}
|
||||
await sendJobCommand({ id: JobName.Library, jobCommandDto: { command: JobCommand.Start } });
|
||||
|
||||
notificationController.show({
|
||||
message: $t('admin.refreshing_all_libraries'),
|
||||
type: NotificationType.Info,
|
||||
|
||||
Reference in New Issue
Block a user