mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-18 13:09:15 +00:00
add "nice data" for jobs
This commit is contained in:
parent
b97ad909ee
commit
e26cbd77fc
|
@ -3,6 +3,7 @@ import dayjs from 'dayjs';
|
||||||
import {
|
import {
|
||||||
ArrowsClockwise,
|
ArrowsClockwise,
|
||||||
Camera,
|
Camera,
|
||||||
|
Copy,
|
||||||
DotsThree,
|
DotsThree,
|
||||||
Eye,
|
Eye,
|
||||||
Fingerprint,
|
Fingerprint,
|
||||||
|
@ -12,6 +13,7 @@ import {
|
||||||
LockSimpleOpen,
|
LockSimpleOpen,
|
||||||
Pause,
|
Pause,
|
||||||
Question,
|
Question,
|
||||||
|
Scissors,
|
||||||
Trash,
|
Trash,
|
||||||
TrashSimple,
|
TrashSimple,
|
||||||
X
|
X
|
||||||
|
@ -69,6 +71,18 @@ const getNiceData = (job: JobReport): Record<string, JobNiceData> => ({
|
||||||
job.task_count > 1 || job.task_count === 0 ? 'files' : 'file'
|
job.task_count > 1 || job.task_count === 0 ? 'files' : 'file'
|
||||||
}`,
|
}`,
|
||||||
icon: Trash
|
icon: Trash
|
||||||
|
},
|
||||||
|
file_copier: {
|
||||||
|
name: `Copied ${numberWithCommas(job.task_count)} ${
|
||||||
|
job.task_count > 1 || job.task_count === 0 ? 'files' : 'file'
|
||||||
|
}`,
|
||||||
|
icon: Copy
|
||||||
|
},
|
||||||
|
file_cutter: {
|
||||||
|
name: `Moved ${numberWithCommas(job.task_count)} ${
|
||||||
|
job.task_count > 1 || job.task_count === 0 ? 'files' : 'file'
|
||||||
|
}`,
|
||||||
|
icon: Scissors
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue