disable pointer events when session can not control. (#41)

This commit is contained in:
Miroslav Šedivý 2023-07-16 16:54:28 +02:00 committed by GitHub
parent 8595ec9295
commit e13c97299d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@
<neko-overlay
ref="overlay"
v-show="!private_mode_enabled && state.connection.status != 'disconnected'"
:style="{ pointerEvents: state.control.locked ? 'none' : 'auto' }"
:style="{ pointerEvents: state.control.locked || (session && !session.profile.can_host) ? 'none' : 'auto' }"
:control="control"
:sessions="state.sessions"
:hostId="state.control.host_id"