mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor: orphan -> untracked
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
value: ManualJobName.IntegrityMissingFiles,
|
||||
},
|
||||
{
|
||||
title: $t('admin.maintenance_integrity_orphan_file_job'),
|
||||
value: ManualJobName.IntegrityOrphanFiles,
|
||||
title: $t('admin.maintenance_integrity_untracked_file_job'),
|
||||
value: ManualJobName.IntegrityUntrackedFiles,
|
||||
},
|
||||
{
|
||||
title: $t('admin.maintenance_integrity_checksum_mismatch_job'),
|
||||
@@ -33,8 +33,8 @@
|
||||
value: ManualJobName.IntegrityMissingFilesRefresh,
|
||||
},
|
||||
{
|
||||
title: $t('admin.maintenance_integrity_orphan_file_refresh_job'),
|
||||
value: ManualJobName.IntegrityOrphanFilesRefresh,
|
||||
title: $t('admin.maintenance_integrity_untracked_file_refresh_job'),
|
||||
value: ManualJobName.IntegrityUntrackedFilesRefresh,
|
||||
},
|
||||
{
|
||||
title: $t('admin.maintenance_integrity_checksum_mismatch_refresh_job'),
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
let integrityReport: IntegrityReportSummaryResponseDto = $state(data.integrityReport);
|
||||
|
||||
const TYPES: IntegrityReportType[] = [
|
||||
IntegrityReportType.OrphanFile,
|
||||
IntegrityReportType.UntrackedFile,
|
||||
IntegrityReportType.MissingFile,
|
||||
IntegrityReportType.ChecksumMismatch,
|
||||
];
|
||||
@@ -53,8 +53,8 @@
|
||||
async function runJob(reportType: IntegrityReportType, refreshOnly?: boolean) {
|
||||
let name: ManualJobName;
|
||||
switch (reportType) {
|
||||
case IntegrityReportType.OrphanFile: {
|
||||
name = refreshOnly ? ManualJobName.IntegrityOrphanFilesRefresh : ManualJobName.IntegrityOrphanFiles;
|
||||
case IntegrityReportType.UntrackedFile: {
|
||||
name = refreshOnly ? ManualJobName.IntegrityUntrackedFilesRefresh : ManualJobName.IntegrityUntrackedFiles;
|
||||
break;
|
||||
}
|
||||
case IntegrityReportType.MissingFile: {
|
||||
|
||||
@@ -57,8 +57,8 @@
|
||||
if (confirm) {
|
||||
let name: ManualJobName;
|
||||
switch (data.type) {
|
||||
case IntegrityReportType.OrphanFile: {
|
||||
name = ManualJobName.IntegrityOrphanFilesDeleteAll;
|
||||
case IntegrityReportType.UntrackedFile: {
|
||||
name = ManualJobName.IntegrityUntrackedFilesDeleteAll;
|
||||
break;
|
||||
}
|
||||
case IntegrityReportType.MissingFile: {
|
||||
@@ -108,7 +108,7 @@
|
||||
const handleOpen = async (event: Event, props: Partial<ContextMenuBaseProps>, reportId: string) => {
|
||||
const items: MenuItems = [];
|
||||
|
||||
if (data.type === IntegrityReportType.OrphanFile || data.type === IntegrityReportType.ChecksumMismatch) {
|
||||
if (data.type === IntegrityReportType.UntrackedFile || data.type === IntegrityReportType.ChecksumMismatch) {
|
||||
items.push({
|
||||
title: $t('download'),
|
||||
icon: mdiDownload,
|
||||
|
||||
Reference in New Issue
Block a user