mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-30 16:25:35 +00:00
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 imageData: editor.dataImage
|
||||
|
||||
readonly property bool hasSelectedImage: localAppSettings.testEnvironment ? true : editor.userSelectedImage
|
||||
|
||||
implicitHeight: layout.childrenRect.height
|
||||
|
||||
ColumnLayout {
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -119,6 +119,7 @@ Item {
|
||||
popupParent: appMain
|
||||
rootStore: appMain.rootStore
|
||||
communitiesStore: appMain.communitiesStore
|
||||
isDevBuild: !production
|
||||
}
|
||||
|
||||
Connections {
|
||||
|
@ -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()
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user