fix(@communities): remove totally the toggle for experimental feature

fixes #6175
This commit is contained in:
Anthony Laibe 2022-06-21 11:00:54 +02:00 committed by Iuri Matias
parent c2555a7650
commit 2112135c6f
2 changed files with 20 additions and 52 deletions

View File

@ -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: {

View File

@ -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