fix(@communities): remove totally the toggle for experimental feature
fixes #6175
This commit is contained in:
parent
c2555a7650
commit
2112135c6f
|
@ -65,6 +65,7 @@ Column {
|
||||||
visible: {
|
visible: {
|
||||||
(model.subsection !== Constants.settingsSubsection.browserSettings && model.subsection !== Constants.settingsSubsection.wallet) ||
|
(model.subsection !== Constants.settingsSubsection.browserSettings && model.subsection !== Constants.settingsSubsection.wallet) ||
|
||||||
(model.subsection === Constants.settingsSubsection.browserSettings && root.browserMenuItemEnabled) ||
|
(model.subsection === Constants.settingsSubsection.browserSettings && root.browserMenuItemEnabled) ||
|
||||||
|
(model.subsection === Constants.settingsSubsection.communitiesSettings) ||
|
||||||
(model.subsection === Constants.settingsSubsection.wallet && root.walletMenuItemEnabled)
|
(model.subsection === Constants.settingsSubsection.wallet && root.walletMenuItemEnabled)
|
||||||
}
|
}
|
||||||
badge.value: {
|
badge.value: {
|
||||||
|
|
|
@ -51,30 +51,6 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
|
||||||
id: confirmationPopupComponent
|
|
||||||
ConfirmationDialog {
|
|
||||||
property string settingsProp: ""
|
|
||||||
property var onConfirmed: (function(){})
|
|
||||||
showCancelButton: true
|
|
||||||
//% "This feature is experimental and is meant for testing purposes by core contributors and the community. It's not meant for real use and makes no claims of security or integrity of funds or data. Use at your own risk."
|
|
||||||
confirmationText: qsTrId("this-feature-is-experimental-and-is-meant-for-testing-purposes-by-core-contributors-and-the-community--it-s-not-meant-for-real-use-and-makes-no-claims-of-security-or-integrity-of-funds-or-data--use-at-your-own-risk-")
|
|
||||||
//% "I understand"
|
|
||||||
confirmButtonLabel: qsTrId("i-understand")
|
|
||||||
onConfirmButtonClicked: {
|
|
||||||
onConfirmed()
|
|
||||||
close()
|
|
||||||
}
|
|
||||||
|
|
||||||
onCancelButtonClicked: {
|
|
||||||
close()
|
|
||||||
}
|
|
||||||
onClosed: {
|
|
||||||
destroy()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: communityIntroDialog
|
id: communityIntroDialog
|
||||||
|
|
||||||
|
@ -291,8 +267,6 @@ Item {
|
||||||
enabled: true
|
enabled: true
|
||||||
text: qsTr("Unsupported state")
|
text: qsTr("Unsupported state")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
||||||
let onBtnClick = function(){
|
|
||||||
let error
|
let error
|
||||||
|
|
||||||
if (rectangleBubble.state === "joined") {
|
if (rectangleBubble.state === "joined") {
|
||||||
|
@ -316,13 +290,6 @@ Item {
|
||||||
if (error) joiningError.showError(error)
|
if (error) joiningError.showError(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (localAccountSensitiveSettings.communitiesEnabled) {
|
|
||||||
onBtnClick();
|
|
||||||
} else {
|
|
||||||
Global.openPopup(confirmationPopupComponent, { onConfirmed: onBtnClick });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MessageDialog {
|
MessageDialog {
|
||||||
id: joiningError
|
id: joiningError
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue