mirror of
https://github.com/immich-app/immich.git
synced 2026-05-23 23:42:30 -04:00
Merge branch 'main' of https://github.com/immich-app/immich into feat/offline-files-job
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
const dispatch = createEventDispatcher<{
|
||||
cancel: void;
|
||||
submit: { ownerId: string | null };
|
||||
submit: { ownerId: string };
|
||||
delete: void;
|
||||
}>();
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
removeOfflineFiles,
|
||||
scanLibrary,
|
||||
updateLibrary,
|
||||
type CreateLibraryDto,
|
||||
type LibraryResponseDto,
|
||||
type LibraryStatsResponseDto,
|
||||
type UserResponseDto,
|
||||
@@ -118,14 +117,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
const handleCreate = async (ownerId: string | null) => {
|
||||
const handleCreate = async (ownerId: string) => {
|
||||
try {
|
||||
let createLibraryDto: CreateLibraryDto = { type: LibraryType.External };
|
||||
if (ownerId) {
|
||||
createLibraryDto = { ...createLibraryDto, ownerId };
|
||||
}
|
||||
|
||||
const createdLibrary = await createLibrary({ createLibraryDto });
|
||||
const createdLibrary = await createLibrary({ createLibraryDto: { ownerId, type: LibraryType.External } });
|
||||
|
||||
notificationController.show({
|
||||
message: `Created library: ${createdLibrary.name}`,
|
||||
|
||||
@@ -286,7 +286,7 @@
|
||||
<tr class="flex w-full place-items-center p-2 md:p-5">
|
||||
<th class="w-full text-sm font-medium place-items-center flex justify-between" colspan="2">
|
||||
<div class="px-3">
|
||||
<p>UNTRACKS FILES {extras.length > 0 ? `(${extras.length})` : ''}</p>
|
||||
<p>UNTRACKED FILES {extras.length > 0 ? `(${extras.length})` : ''}</p>
|
||||
<p class="text-gray-600 dark:text-gray-300 mt-1">
|
||||
These files are not tracked by the application. They can be the results of failed moves,
|
||||
interrupted uploads, or left behind due to a bug
|
||||
|
||||
Reference in New Issue
Block a user