status-desktop/ui/app/AppLayouts/Chat/controls/community/CommunityDescriptionInput.qml
PavelS ba50c69b76 fix(@desktop/community)!: missing error messages
Remove ValidationMode.Always for StatusInputs because by default they
are invalid and validate input when dirty
Remove condition from errorMessage of BackupSeedStepBase as not needed.

Fixes #6825

Requires https://github.com/status-im/StatusQ/pull/858

BREAKING CHANGE: StatusInputs are invalid by default and validate when
dirty.
2022-08-18 15:17:14 +03:00

34 lines
755 B
QML

import QtQuick 2.14
import utils 1.0
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Controls 0.1
import StatusQ.Controls.Validators 0.1
StatusInput {
id: root
leftPadding: 0
rightPadding: 0
label: qsTr("Give it a short description")
charLimit: 140
placeholderText: qsTr("What your community is about")
input.multiline: true
minimumHeight: 88
maximumHeight: 88
input.verticalAlignment: Qt.AlignTop
input.placeholder.verticalAlignment: Qt.AlignTop
validators: [
StatusMinLengthValidator {
minLength: 1
errorMessage: Utils.getErrorMessage(root.errors,
qsTr("community description"))
}
]
}