Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Commit

Permalink
[fix] Pause countdown freezes on OpenVPN reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
stenya committed Apr 1, 2021
1 parent b3f9bba commit dac1388
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/components/blocks/block-connect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@ export default {
isConnected: function() {
return this.$store.getters["vpnState/isConnected"];
},
pauseConnectionTill: function() {
return this.$store.state.uiState.pauseConnectionTill;
},
isPaused: function() {
if (this.$store.state.vpnState.pauseState !== PauseStateEnum.Paused)
return false;
return this.pauseConnectionTill != null;
},
isCanPause: function() {
if (!this.isConnected) return false;
if (this.isProgress === true) return false;
Expand All @@ -221,13 +229,10 @@ export default {
},
isCanShowPauseMenu: function() {
return this.isCanPause && this.isPauseMenuAllowed;
},
pauseConnectionTill: function() {
return this.$store.state.uiState.pauseConnectionTill;
}
},
watch: {
pauseConnectionTill() {
isPaused() {
this.startPauseTimer();
}
},
Expand Down

0 comments on commit dac1388

Please sign in to comment.