Merge pull request #3571 from thelounge/xpaw/fix-3569

Disable protocol register button if lockNetwork is enabled
This commit is contained in:
Pavel Djundik 2019-12-11 19:33:56 +02:00 committed by GitHub
commit 0e3d7bb5bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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