Skip to content

Commit 671d3b6

Browse files
authored
Merge pull request ceph#56468 from rhcs-dashboard/clone-name-exists-valid-fix
mgr/dashboard: fix clone unique validator for name validation Reviewed-by: afreen23 <NOT@FOUND> Reviewed-by: Ankush Behl <[email protected]>
2 parents dd6049f + 8070dfd commit 671d3b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolume-snapshots-list/cephfs-subvolume-snapshots-list.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,15 @@ export class CephfsSubvolumeSnapshotsListComponent implements OnInit, OnChanges
275275
],
276276
required: true,
277277
errors: {
278-
pattern: $localize`Allowed characters are letters, numbers, '.', '-', '+', ':' or '_'`
278+
pattern: $localize`Allowed characters are letters, numbers, '.', '-', '+', ':' or '_'`,
279+
notUnique: $localize`A subvolume or clone with this name already exists.`
279280
}
280281
},
281282
{
282283
type: 'select',
283284
name: 'groupName',
284285
value: this.activeGroupName,
285-
label: $localize`Group Name`,
286+
label: $localize`Group name`,
286287
typeConfig: {
287288
options: allGroups
288289
}

0 commit comments

Comments
 (0)