From 321ed810e3eb11146f07e9229b392df5d739f608 Mon Sep 17 00:00:00 2001 From: agalehaga Date: Tue, 13 Feb 2024 15:16:04 +0200 Subject: [PATCH] fixed bug with double button clear server from amnezia software --- .../ui/qml/Pages2/PageSettingsServerData.qml | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/client/ui/qml/Pages2/PageSettingsServerData.qml b/client/ui/qml/Pages2/PageSettingsServerData.qml index a9365af4..99d8a87a 100644 --- a/client/ui/qml/Pages2/PageSettingsServerData.qml +++ b/client/ui/qml/Pages2/PageSettingsServerData.qml @@ -227,38 +227,6 @@ PageType { visible: content.isServerWithWriteAccess } - LabelWithButtonType { - visible: content.isServerWithWriteAccess - Layout.fillWidth: true - - text: qsTr("Clear server from Amnezia software") - textColor: "#EB5757" - - clickedFunction: function() { - questionDrawer.headerText = qsTr("Do you want to clear server from Amnezia software?") - questionDrawer.descriptionText = qsTr("All containers will be deleted on the server. This means that configuration files, keys and certificates will be deleted.") - questionDrawer.yesButtonText = qsTr("Continue") - questionDrawer.noButtonText = qsTr("Cancel") - - questionDrawer.yesButtonFunction = function() { - questionDrawer.visible = false - PageController.goToPage(PageEnum.PageDeinstalling) - if (ServersModel.isDefaultServerCurrentlyProcessed() && ConnectionController.isConnected) { - ConnectionController.closeConnection() - } - InstallController.removeAllContainers() - } - questionDrawer.noButtonFunction = function() { - questionDrawer.visible = false - } - questionDrawer.visible = true - } - } - - DividerType { - visible: content.isServerWithWriteAccess - } - LabelWithButtonType { visible: ServersModel.isCurrentlyProcessedServerFromApi() Layout.fillWidth: true