mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 00:15:35 +02:00
feat(delete): hide removal of clones completely if no clones are affected
This commit is contained in:
@@ -154,15 +154,7 @@ function DeleteAllClonesOption({ cloneInfo, deleteAllClones, setDeleteAllClones
|
||||
const { totalCloneCount } = cloneInfo;
|
||||
|
||||
if (totalCloneCount === 0) {
|
||||
return (
|
||||
<OptionsRow
|
||||
name="delete-all-clones"
|
||||
label={t("delete_notes.clones_label")}
|
||||
description={t("delete_notes.no_clones_message")}
|
||||
>
|
||||
<span style={{ color: "var(--muted-text-color)" }}>—</span>
|
||||
</OptionsRow>
|
||||
);
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user