Skip to content

Create empty file-group doesn't validate container name #905

@ascobie

Description

@ascobie

Attempting to create an empty file group/container doesn't validate the container name is valid and so attempting to save it crashes the application ....

Also can we change the button text from "Confirm" to "Save" or "Create".

It also need's to check for duplicate container names and length. This code is already in the FileGroupCreateFormComponent:

        name: ["", [
            Validators.required,
            Validators.maxLength(validation.maxLength.fileGroup),
            Validators.pattern(validation.regex.fileGroup),
        ], [
                this._validateFileGroupName.bind(this),
            ]],

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions