Disable protocol register button if lockNetwork is enabled

Fixes #3569
This commit is contained in:
Pavel Djundik 2019-12-10 23:24:46 +02:00
parent 2a84d8239b
commit 74cc1722ea

View file

@ -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) {