mirror of
https://github.com/thelounge/thelounge
synced 2024-11-11 15:07:14 +00:00
Merge pull request #3571 from thelounge/xpaw/fix-3569
Disable protocol register button if lockNetwork is enabled
This commit is contained in:
commit
0e3d7bb5bd
1 changed files with 5 additions and 4 deletions
|
@ -519,10 +519,11 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
socket.emit("sessions:get");
|
socket.emit("sessions:get");
|
||||||
|
|
||||||
// Enable protocol handler registration if supported
|
// Enable protocol handler registration if supported,
|
||||||
if (window.navigator.registerProtocolHandler) {
|
// and the network configuration is not locked
|
||||||
this.canRegisterProtocol = true;
|
this.canRegisterProtocol =
|
||||||
}
|
window.navigator.registerProtocolHandler &&
|
||||||
|
!this.$store.state.serverConfiguration.lockNetwork;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange(event) {
|
onChange(event) {
|
||||||
|
|
Loading…
Reference in a new issue