Skip to content

Commit 173f966

Browse files
committed
feat(ui): update save as version naming convention
1 parent 32cf97f commit 173f966

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.5.dev10
1+
0.5.5.rc1

src/ui/src/components/configuration-layout/ConfigurationLayout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,8 +2248,8 @@ const ConfigurationLayout = (): React.JSX.Element => {
22482248
<Button
22492249
variant="normal"
22502250
onClick={() => {
2251-
setSaveAsVersionName(`copy-of-${currentVersionName}`);
2252-
setSaveAsVersionDescription(currentVersion?.description ? `Copy of ${currentVersion.description}` : '');
2251+
setSaveAsVersionName(`${currentVersionName}-copy`);
2252+
setSaveAsVersionDescription(currentVersion?.description ? `${currentVersion.description} - copy` : '');
22532253
setShowSaveAsVersionModal(true);
22542254
}}
22552255
disabled={validationErrors.length > 0}
@@ -2310,8 +2310,8 @@ const ConfigurationLayout = (): React.JSX.Element => {
23102310
<Button
23112311
variant="normal"
23122312
onClick={() => {
2313-
setSaveAsVersionName(`copy-of-${currentVersionName}`);
2314-
setSaveAsVersionDescription(currentVersion?.description ? `Copy of ${currentVersion.description}` : '');
2313+
setSaveAsVersionName(`${currentVersionName}-copy`);
2314+
setSaveAsVersionDescription(currentVersion?.description ? `${currentVersion.description} - copy` : '');
23152315
setShowSaveAsVersionModal(true);
23162316
}}
23172317
>

0 commit comments

Comments
 (0)