status-desktop/ui/app/AppLayouts/Chat/controls/community/CommunityNameInput.qml

26 lines
557 B
QML
Raw Normal View History

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("Name your community")
charLimit: 30
placeholderText: qsTr("A catchy name")
validators: [
StatusMinLengthValidator {
minLength: 1
errorMessage: Utils.getErrorMessage(root.errors,
qsTr("community name"))
}
]
}