mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
update: check that current config is active
This commit is contained in:
@@ -859,7 +859,11 @@ PageType {
|
||||
var noButtonFunction = function() {
|
||||
}
|
||||
|
||||
if (ConnectionController.isConnectionInProgress()) {
|
||||
var isActiveConfigForCurrentClient = ServersModel.isDefaultServerCurrentlyProcessed()
|
||||
&& ServersModel.getDefaultServerData("defaultContainer") === ContainersModel.getProcessedContainerIndex()
|
||||
|
||||
if ((ConnectionController.isConnectionInProgress || ConnectionController.isConnected)
|
||||
&& isActiveConfigForCurrentClient) {
|
||||
PageController.showNotificationMessage("Disconnect from VPN to revoke this config")
|
||||
} else {
|
||||
showQuestionDrawer(headerText, descriptionText, yesButtonText, noButtonText, yesButtonFunction, noButtonFunction)
|
||||
|
||||
Reference in New Issue
Block a user