Community -> New community: make community banner and logo required
in production builds Fixes #11234
This commit is contained in:
parent
a2dd87c18b
commit
af96345e26
|
@ -23,6 +23,8 @@ Item {
|
||||||
property alias cropRect: editor.cropRect
|
property alias cropRect: editor.cropRect
|
||||||
property alias imageData: editor.dataImage
|
property alias imageData: editor.dataImage
|
||||||
|
|
||||||
|
readonly property bool hasSelectedImage: localAppSettings.testEnvironment ? true : editor.userSelectedImage
|
||||||
|
|
||||||
implicitHeight: layout.childrenRect.height
|
implicitHeight: layout.childrenRect.height
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
|
@ -23,6 +23,8 @@ Item {
|
||||||
property alias cropRect: editor.cropRect
|
property alias cropRect: editor.cropRect
|
||||||
property alias imageData: editor.dataImage
|
property alias imageData: editor.dataImage
|
||||||
|
|
||||||
|
readonly property bool hasSelectedImage: localAppSettings.testEnvironment ? true : editor.userSelectedImage
|
||||||
|
|
||||||
implicitHeight: layout.childrenRect.height
|
implicitHeight: layout.childrenRect.height
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
|
@ -23,6 +23,7 @@ StatusStackModal {
|
||||||
|
|
||||||
property var store
|
property var store
|
||||||
property bool isDiscordImport // creating new or importing from discord?
|
property bool isDiscordImport // creating new or importing from discord?
|
||||||
|
property bool isDevBuild
|
||||||
|
|
||||||
stackTitle: isDiscordImport ? qsTr("Import a community from Discord into Status") :
|
stackTitle: isDiscordImport ? qsTr("Import a community from Discord into Status") :
|
||||||
qsTr("Create New Community")
|
qsTr("Create New Community")
|
||||||
|
@ -367,7 +368,7 @@ StatusStackModal {
|
||||||
StatusScrollView {
|
StatusScrollView {
|
||||||
id: generalView
|
id: generalView
|
||||||
contentWidth: availableWidth
|
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
|
padding: 0
|
||||||
clip: false
|
clip: false
|
||||||
|
|
|
@ -119,6 +119,7 @@ Item {
|
||||||
popupParent: appMain
|
popupParent: appMain
|
||||||
rootStore: appMain.rootStore
|
rootStore: appMain.rootStore
|
||||||
communitiesStore: appMain.communitiesStore
|
communitiesStore: appMain.communitiesStore
|
||||||
|
isDevBuild: !production
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
|
|
@ -24,6 +24,7 @@ QtObject {
|
||||||
required property var popupParent
|
required property var popupParent
|
||||||
required property var rootStore
|
required property var rootStore
|
||||||
property var communitiesStore
|
property var communitiesStore
|
||||||
|
property bool isDevBuild
|
||||||
|
|
||||||
property var activePopupComponents: []
|
property var activePopupComponents: []
|
||||||
|
|
||||||
|
@ -467,6 +468,7 @@ QtObject {
|
||||||
id: createCommunitiesPopupComponent
|
id: createCommunitiesPopupComponent
|
||||||
CreateCommunityPopup {
|
CreateCommunityPopup {
|
||||||
store: root.communitiesStore
|
store: root.communitiesStore
|
||||||
|
isDevBuild: root.isDevBuild
|
||||||
onClosed: {
|
onClosed: {
|
||||||
destroy()
|
destroy()
|
||||||
}
|
}
|
||||||
|
|
|
@ -626,7 +626,7 @@ QtObject {
|
||||||
readonly property string alphanumericalRegExp: qsTr("Only letters and numbers allowed")
|
readonly property string alphanumericalRegExp: qsTr("Only letters and numbers allowed")
|
||||||
readonly property string alphanumericalWithSpaceRegExp: qsTr("Special characters are not 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 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 {
|
readonly property QtObject socialLinkType: QtObject {
|
||||||
|
|
Loading…
Reference in New Issue