Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions workspace/src/app/views/shared/modals/CloneModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function CloneModal({ item, onDiscard, onConfirmed }: ICloneOptio
data-test-id={"clone-item-to-modal"}
size="small"
title={
t("common.action.CloneSmth", {
t(item.id ? "common.action.CloneSmthShallow" : "common.action.CloneSmth", {
smth: t(item.id ? "common.dataTypes.task" : "common.dataTypes.project"),
}) +
": " +
Expand Down Expand Up @@ -176,6 +176,12 @@ export default function CloneModal({ item, onDiscard, onConfirmed }: ICloneOptio
</Button>,
]}
>
{item.id && (
<>
<Notification message={t("cloneModal.shallowCloneInfo")} />
<Spacing />
</>
)}
<FieldItem
labelProps={{
htmlFor: "label",
Expand Down Expand Up @@ -218,7 +224,7 @@ export default function CloneModal({ item, onDiscard, onConfirmed }: ICloneOptio
)}
{showDocumentation && (
<TaskDocumentationModal
documentationToShow={{ key: "", namedAnchor: "", description: t("cloneModal.info") }}
documentationToShow={{ key: "", namedAnchor: "", description: t(item.id ? "cloneModal.infoTask" : "cloneModal.infoProject") }}
onClose={() => setShowDocumentation(false)}
size="tiny"
/>
Expand Down
5 changes: 4 additions & 1 deletion workspace/src/locales/manual/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@
"showIdentifier": "Show identifier",
"AddSmth": "Add {{smth}}",
"CloneSmth": "Clone {{smth}}",
"CloneSmthShallow": "Clone {{smth}} (shallow clone)",
"CopySmth": "Copy {{smth}} artefacts",
"CreateSmth": "Create {{smth}}",
"DeleteSmth": "Delete {{smth}}",
Expand Down Expand Up @@ -839,7 +840,9 @@
}
},
"cloneModal": {
"info": "Cloning a task means creating a copy of the task configuration in the same project. The related (used) tasks of this cloned task are not copied or changed (e.g., a cloned workflow processes the same workflow tasks as the original and not copies of them)."
"infoTask": "Cloning creates a shallow copy of the task within the same project. Referenced tasks are not duplicated — e.g., a cloned workflow still operates on the original workflow tasks.",
"infoProject": "Cloning a project creates a full copy of the project including all its tasks.",
"shallowCloneInfo": "This creates a copy of the task configuration only. Referenced tasks or sub-task steps are not duplicated."
},
"widget": {
"deprecatedPluginWidget": {
Expand Down
Loading