From 74cc1722ea15e639555bc5279e600067b48808de Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 10 Dec 2019 23:24:46 +0200 Subject: [PATCH] Disable protocol register button if lockNetwork is enabled Fixes #3569 --- client/components/Windows/Settings.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/components/Windows/Settings.vue b/client/components/Windows/Settings.vue index 163b0103..84ae37c8 100644 --- a/client/components/Windows/Settings.vue +++ b/client/components/Windows/Settings.vue @@ -519,10 +519,11 @@ export default { mounted() { socket.emit("sessions:get"); - // Enable protocol handler registration if supported - if (window.navigator.registerProtocolHandler) { - this.canRegisterProtocol = true; - } + // Enable protocol handler registration if supported, + // and the network configuration is not locked + this.canRegisterProtocol = + window.navigator.registerProtocolHandler && + !this.$store.state.serverConfiguration.lockNetwork; }, methods: { onChange(event) {