fix(communities): Naming validation for communities
Category name validation updated. Fixes: #2297
This commit is contained in:
parent
b9ff88f41c
commit
538dcd0b86
|
@ -17,7 +17,6 @@ ModalPopup {
|
||||||
readonly property int maxCategoryNameLength: 30
|
readonly property int maxCategoryNameLength: 30
|
||||||
readonly property var categoryNameValidator: Utils.Validate.NoEmpty
|
readonly property var categoryNameValidator: Utils.Validate.NoEmpty
|
||||||
| Utils.Validate.TextLength
|
| Utils.Validate.TextLength
|
||||||
| Utils.Validate.TextLowercase
|
|
||||||
|
|
||||||
id: popup
|
id: popup
|
||||||
height: 453
|
height: 453
|
||||||
|
@ -68,8 +67,6 @@ ModalPopup {
|
||||||
maxLength: maxCategoryNameLength
|
maxLength: maxCategoryNameLength
|
||||||
|
|
||||||
onTextEdited: {
|
onTextEdited: {
|
||||||
text = Utils.convertSpacesToDashesAndUpperToLowerCase(text);
|
|
||||||
|
|
||||||
validationError = Utils.validateAndReturnError(text,
|
validationError = Utils.validateAndReturnError(text,
|
||||||
categoryNameValidator,
|
categoryNameValidator,
|
||||||
qsTr("category name"),
|
qsTr("category name"),
|
||||||
|
|
Loading…
Reference in New Issue