mirror of
https://github.com/immich-app/immich.git
synced 2025-01-28 00:59:18 -05:00
chore(web): remove unnused property (#10820)
This commit is contained in:
parent
4a481acca6
commit
04f0ac1aad
14 changed files with 3 additions and 26 deletions
|
@ -42,7 +42,6 @@
|
||||||
const handleConfirmCommand = async (jobId: JobName, dto: JobCommandDto) => {
|
const handleConfirmCommand = async (jobId: JobName, dto: JobCommandDto) => {
|
||||||
if (dto.force) {
|
if (dto.force) {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'confirm-reprocess-all-faces',
|
|
||||||
prompt: $t('admin.confirm_reprocess_all_faces'),
|
prompt: $t('admin.confirm_reprocess_all_faces'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -303,7 +303,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'delete-album',
|
|
||||||
prompt: $t('album_delete_confirmation', { values: { album: albumToDelete.albumName } }),
|
prompt: $t('album_delete_confirmation', { values: { album: albumToDelete.albumName } }),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,6 @@
|
||||||
|
|
||||||
const handleMerge = async () => {
|
const handleMerge = async () => {
|
||||||
const isConfirm = await dialogController.show({
|
const isConfirm = await dialogController.show({
|
||||||
id: 'merge-people',
|
|
||||||
prompt: $t('merge_people_prompt'),
|
prompt: $t('merge_people_prompt'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,6 @@
|
||||||
|
|
||||||
const resetPassword = async () => {
|
const resetPassword = async () => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'confirm-reset-password',
|
|
||||||
prompt: $t('admin.confirm_user_password_reset', { values: { user: user.name } }),
|
prompt: $t('admin.confirm_user_password_reset', { values: { user: user.name } }),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
const removeFromAlbum = async () => {
|
const removeFromAlbum = async () => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'remove-from-album',
|
|
||||||
prompt: $t('remove_assets_album_confirmation', { values: { count: getAssets().size } }),
|
prompt: $t('remove_assets_album_confirmation', { values: { count: getAssets().size } }),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
|
|
||||||
const handleRemove = async () => {
|
const handleRemove = async () => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'remove-from-shared-link',
|
|
||||||
title: $t('remove_assets_title'),
|
title: $t('remove_assets_title'),
|
||||||
prompt: $t('remove_assets_shared_link_confirmation', { values: { count: getAssets().size } }),
|
prompt: $t('remove_assets_shared_link_confirmation', { values: { count: getAssets().size } }),
|
||||||
confirmText: $t('remove'),
|
confirmText: $t('remove'),
|
||||||
|
|
|
@ -6,7 +6,6 @@ type DialogActions = {
|
||||||
};
|
};
|
||||||
|
|
||||||
type DialogOptions = {
|
type DialogOptions = {
|
||||||
id?: string;
|
|
||||||
title?: string;
|
title?: string;
|
||||||
prompt?: string;
|
prompt?: string;
|
||||||
confirmText?: string;
|
confirmText?: string;
|
||||||
|
@ -22,7 +21,7 @@ function createDialogWrapper() {
|
||||||
const dialog = writable<Dialog | undefined>();
|
const dialog = writable<Dialog | undefined>();
|
||||||
|
|
||||||
async function show(options: DialogOptions) {
|
async function show(options: DialogOptions) {
|
||||||
return new Promise((resolve) => {
|
return new Promise<boolean>((resolve) => {
|
||||||
const newDialog: Dialog = {
|
const newDialog: Dialog = {
|
||||||
...options,
|
...options,
|
||||||
onConfirm: () => {
|
onConfirm: () => {
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
const handleDelete = async (device: SessionResponseDto) => {
|
const handleDelete = async (device: SessionResponseDto) => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'log-out-device',
|
|
||||||
prompt: $t('logout_this_device_confirmation'),
|
prompt: $t('logout_this_device_confirmation'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -35,11 +34,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleDeleteAll = async () => {
|
const handleDeleteAll = async () => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({ prompt: $t('logout_all_device_confirmation') });
|
||||||
id: 'log-out-all-devices',
|
|
||||||
prompt: $t('logout_all_device_confirmation'),
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!isConfirmed) {
|
if (!isConfirmed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,6 @@
|
||||||
|
|
||||||
const handleRemovePartner = async (partner: PartnerResponseDto) => {
|
const handleRemovePartner = async (partner: PartnerResponseDto) => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'remove-partner',
|
|
||||||
title: $t('stop_photo_sharing'),
|
title: $t('stop_photo_sharing'),
|
||||||
prompt: $t('stop_photo_sharing_description', { values: { partner: partner.name } }),
|
prompt: $t('stop_photo_sharing_description', { values: { partner: partner.name } }),
|
||||||
});
|
});
|
||||||
|
|
|
@ -60,11 +60,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleDelete = async (key: ApiKeyResponseDto) => {
|
const handleDelete = async (key: ApiKeyResponseDto) => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({ prompt: $t('delete_api_key_prompt') });
|
||||||
id: 'delete-api-key',
|
|
||||||
prompt: $t('delete_api_key_prompt'),
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!isConfirmed) {
|
if (!isConfirmed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -340,7 +340,6 @@
|
||||||
|
|
||||||
const handleRemoveAlbum = async () => {
|
const handleRemoveAlbum = async () => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'remove-album',
|
|
||||||
prompt: $t('album_delete_confirmation', { values: { album: album.albumName } }),
|
prompt: $t('album_delete_confirmation', { values: { album: album.albumName } }),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
|
|
||||||
const handleDeleteLink = async (id: string) => {
|
const handleDeleteLink = async (id: string) => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'delete-shared-link',
|
|
||||||
title: $t('delete_shared_link'),
|
title: $t('delete_shared_link'),
|
||||||
prompt: $t('confirm_delete_shared_link'),
|
prompt: $t('confirm_delete_shared_link'),
|
||||||
confirmText: $t('delete'),
|
confirmText: $t('delete'),
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
|
|
||||||
const handleEmptyTrash = async () => {
|
const handleEmptyTrash = async () => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'empty-trash',
|
|
||||||
prompt: $t('empty_trash_confirmation'),
|
prompt: $t('empty_trash_confirmation'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -62,7 +61,6 @@
|
||||||
|
|
||||||
const handleRestoreTrash = async () => {
|
const handleRestoreTrash = async () => {
|
||||||
const isConfirmed = await dialogController.show({
|
const isConfirmed = await dialogController.show({
|
||||||
id: 'restore-trash',
|
|
||||||
prompt: $t('assets_restore_confirmation'),
|
prompt: $t('assets_restore_confirmation'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -268,7 +268,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const isConfirmedLibrary = await dialogController.show({
|
const isConfirmedLibrary = await dialogController.show({
|
||||||
id: 'delete-library',
|
|
||||||
prompt: $t('admin.confirm_delete_library', { values: { library: library.name } }),
|
prompt: $t('admin.confirm_delete_library', { values: { library: library.name } }),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -281,7 +280,6 @@
|
||||||
deleteAssetCount = totalCount[index];
|
deleteAssetCount = totalCount[index];
|
||||||
|
|
||||||
const isConfirmedLibraryAssetCount = await dialogController.show({
|
const isConfirmedLibraryAssetCount = await dialogController.show({
|
||||||
id: 'delete-library-assets',
|
|
||||||
prompt: $t('admin.confirm_delete_library_assets', { values: { count: deleteAssetCount } }),
|
prompt: $t('admin.confirm_delete_library_assets', { values: { count: deleteAssetCount } }),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue