Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

fix: minor ui issues.

towfiqi2f9076552393
diff --git a/frontend/src/components/Plan/PlanStats/PlanStats.tsx b/frontend/src/components/Plan/PlanStats/PlanStats.tsx
index 992bb30..82369bc 100644
--- a/frontend/src/components/Plan/PlanStats/PlanStats.tsx
+++ b/frontend/src/components/Plan/PlanStats/PlanStats.tsx
@@ -21,7 +21,7 @@ const PlanStats = ({ plan, isSync, lastBackupItem }: PlanStatsProps) => {
let html = '';
if (sources && sources.includes && sources.includes.length > 0) {
html += `<div><strong>Includes</strong></div>`;
- html += sources.includes.map((p) => `<div>${p}</div>`).join('');
+ html += sources.includes.map((p) => `<div>${plan.device.name} -> ${p}</div>`).join('');
}
if (sources && sources.excludes && sources.excludes.length > 0) {
html += `<div><strong>Excludes</strong></div>`;
diff --git a/frontend/src/components/Storage/StorageItem/StorageItem.tsx b/frontend/src/components/Storage/StorageItem/StorageItem.tsx
index 70d5794..e4cb998 100644
--- a/frontend/src/components/Storage/StorageItem/StorageItem.tsx
+++ b/frontend/src/components/Storage/StorageItem/StorageItem.tsx
@@ -19,10 +19,11 @@ const StorageItem = ({ storage, layout }: StorageItemProps) => {
const [showEditModal, setShowEditModal] = useState(false);
const [showDeleteModal, setShowDeleteModal] = useState(false);
const [showVerifyModal, setShowVerifyModal] = useState(false);
- const { id, name, type, plans = [], usedSize = 200, storageTypeName } = storage;
+ const { id, name, type, plans = [], usedSize = 200, storageTypeName, settings = {} } = storage;
const deleteStorageMutation = useDeleteStorage();
const verifyStorageMutation = useVerifyStorage();
const isLocalStorage = id === 'local';
+ const description = settings.description as string;
const removeStorage = () => {
deleteStorageMutation.mutate(storage.id, {
@@ -50,7 +51,13 @@ const StorageItem = ({ storage, layout }: StorageItemProps) => {
<div className={classes.content}>
<div className={classes.title} onClick={() => !isLocalStorage && setShowEditModal(true)}>
- <h4>{name}</h4> {isLocalStorage && <Icon type="lock" size={14} />}
+ <h4>{name}</h4>
+ {description && (
+ <i className={classes.planDescription} data-tooltip-id="appTooltip" data-tooltip-content={description} data-tooltip-place="top">
+ <Icon type="note" size={13} />
+ </i>
+ )}
+ {isLocalStorage && <Icon type="lock" size={14} />}
</div>
<div>{storageTypeName}</div>
</div>