mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-17 18:11:54 +00:00
parent
044fe38bda
commit
a78fc0ded6
@ -23,7 +23,7 @@ StatusModal {
|
||||
|
||||
property bool isEdit: false
|
||||
|
||||
readonly property int maxCategoryNameLength: 30
|
||||
readonly property int maxCategoryNameLength: 24
|
||||
readonly property var categoryNameValidator: Utils.Validate.NoEmpty
|
||||
| Utils.Validate.TextLength
|
||||
|
||||
|
@ -26,7 +26,7 @@ StatusModal {
|
||||
readonly property var communityColorValidator: Utils.Validate.NoEmpty
|
||||
| Utils.Validate.TextHexColor
|
||||
|
||||
readonly property int maxChannelNameLength: 30
|
||||
readonly property int maxChannelNameLength: 24
|
||||
readonly property int maxChannelDescLength: 140
|
||||
|
||||
signal createCommunityChannel(string chName, string chDescription, string chEmoji,
|
||||
@ -109,7 +109,7 @@ StatusModal {
|
||||
id: nameInput
|
||||
label: qsTr("Channel name")
|
||||
charLimit: popup.maxChannelNameLength
|
||||
input.placeholderText: qsTr("Name the channel")
|
||||
input.placeholderText: qsTr("# Name the channel")
|
||||
input.onTextChanged: {
|
||||
input.text = Utils.convertSpacesToDashesAndUpperToLowerCase(input.text);
|
||||
input.cursorPosition = input.text.length
|
||||
@ -123,10 +123,12 @@ StatusModal {
|
||||
popup.emojiPopup.y = popup.y + nameInput.height + 2*Style.current.xlPadding
|
||||
}
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
validators: [StatusMinLengthValidator {
|
||||
minLength: 1
|
||||
errorMessage: Utils.getErrorMessage(nameInput.errors, qsTr("channel name"))
|
||||
}]
|
||||
validators: [
|
||||
StatusMinLengthValidator {
|
||||
minLength: 1
|
||||
errorMessage: Utils.getErrorMessage(nameInput.errors, qsTr("channel name"))
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Item {
|
||||
|
Loading…
x
Reference in New Issue
Block a user