fix: hide used_by when only one source is present
used_by (share names) shown only when path has both samba and nfs to avoid redundancy with the source chips.
This commit is contained in:
@@ -50,7 +50,7 @@ export default function Dashboard() {
|
||||
{SOURCE_LABELS[s] ?? s}
|
||||
</span>
|
||||
))}
|
||||
{d.used_by && d.used_by.length > 0 && (
|
||||
{d.used_by && d.used_by.length > 0 && d.sources.length > 1 && (
|
||||
<span className="text-xs text-slate-500">{d.used_by.join(", ")}</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user