fixed bug with double button clear server from amnezia software
This commit is contained in:
parent
a416d03614
commit
321ed810e3
1 changed files with 0 additions and 32 deletions
|
@ -227,38 +227,6 @@ PageType {
|
||||||
visible: content.isServerWithWriteAccess
|
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 {
|
LabelWithButtonType {
|
||||||
visible: ServersModel.isCurrentlyProcessedServerFromApi()
|
visible: ServersModel.isCurrentlyProcessedServerFromApi()
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue