chore: added 404 handling for revoke configs

- added revoke before remove api server for premium v2
This commit is contained in:
vladimir.kuznetsov 2025-02-23 14:26:04 +07:00
parent d19017f87b
commit 19fcddfdaf
5 changed files with 23 additions and 6 deletions

View file

@ -164,7 +164,7 @@ PageType {
Layout.fillWidth: true
Layout.topMargin: 32
visible: footer.isVisibleForAmneziaFree
visible: false //footer.isVisibleForAmneziaFree
text: qsTr("Subscription key")
rightImageSource: "qrc:/images/controls/chevron-right.svg"
@ -187,11 +187,12 @@ PageType {
}
DividerType {
visible: footer.isVisibleForAmneziaFree
visible: false //footer.isVisibleForAmneziaFree
}
LabelWithButtonType {
Layout.fillWidth: true
Layout.topMargin: 32
visible: footer.isVisibleForAmneziaFree
@ -336,7 +337,9 @@ PageType {
PageController.showNotificationMessage(qsTr("Cannot remove server during active connection"))
} else {
PageController.showBusyIndicator(true)
InstallController.removeProcessedServer()
if (ApiConfigsController.deactivateDevice()) {
InstallController.removeProcessedServer()
}
PageController.showBusyIndicator(false)
}
}