Community -> New community: make community banner and logo required

in production builds

Fixes #11234
This commit is contained in:
Lukáš Tinkl 2023-06-26 13:44:56 +02:00 committed by Lukáš Tinkl
parent a2dd87c18b
commit af96345e26
6 changed files with 10 additions and 2 deletions

View File

@ -23,6 +23,8 @@ Item {
property alias cropRect: editor.cropRect
property alias imageData: editor.dataImage
readonly property bool hasSelectedImage: localAppSettings.testEnvironment ? true : editor.userSelectedImage
implicitHeight: layout.childrenRect.height
ColumnLayout {

View File

@ -23,6 +23,8 @@ Item {
property alias cropRect: editor.cropRect
property alias imageData: editor.dataImage
readonly property bool hasSelectedImage: localAppSettings.testEnvironment ? true : editor.userSelectedImage
implicitHeight: layout.childrenRect.height
ColumnLayout {

View File

@ -23,6 +23,7 @@ StatusStackModal {
property var store
property bool isDiscordImport // creating new or importing from discord?
property bool isDevBuild
stackTitle: isDiscordImport ? qsTr("Import a community from Discord into Status") :
qsTr("Create New Community")
@ -367,7 +368,7 @@ StatusStackModal {
StatusScrollView {
id: generalView
contentWidth: availableWidth
readonly property bool canGoNext: nameInput.valid && descriptionTextInput.valid
readonly property bool canGoNext: nameInput.valid && descriptionTextInput.valid && (root.isDevBuild || (logoPicker.hasSelectedImage && bannerPicker.hasSelectedImage))
padding: 0
clip: false

View File

@ -119,6 +119,7 @@ Item {
popupParent: appMain
rootStore: appMain.rootStore
communitiesStore: appMain.communitiesStore
isDevBuild: !production
}
Connections {

View File

@ -24,6 +24,7 @@ QtObject {
required property var popupParent
required property var rootStore
property var communitiesStore
property bool isDevBuild
property var activePopupComponents: []
@ -467,6 +468,7 @@ QtObject {
id: createCommunitiesPopupComponent
CreateCommunityPopup {
store: root.communitiesStore
isDevBuild: root.isDevBuild
onClosed: {
destroy()
}

View File

@ -626,7 +626,7 @@ QtObject {
readonly property string alphanumericalRegExp: qsTr("Only letters and numbers allowed")
readonly property string alphanumericalWithSpaceRegExp: qsTr("Special characters are not allowed")
readonly property string alphanumericalExpandedRegExp: qsTr("Only letters, numbers, underscores, whitespaces and hyphens allowed")
readonly property string asciiRegExp: qsTr("Only letters, numbers and ASII characters allowed")
readonly property string asciiRegExp: qsTr("Only letters, numbers and ASCII characters allowed")
}
readonly property QtObject socialLinkType: QtObject {