mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add inactive cursors to member profile.
This commit is contained in:
parent
54bcbd6333
commit
b621c685c1
@ -4,7 +4,7 @@
|
|||||||
<video v-show="!screencast" ref="video" :autoplay="autoplay" :muted="autoplay" playsinline />
|
<video v-show="!screencast" ref="video" :autoplay="autoplay" :muted="autoplay" playsinline />
|
||||||
<neko-screencast v-show="screencast" :enabled="screencast" :api="api.room" />
|
<neko-screencast v-show="screencast" :enabled="screencast" :api="api.room" />
|
||||||
<neko-cursors
|
<neko-cursors
|
||||||
v-if="state.cursors.enabled"
|
v-if="state.cursors.enabled && state.sessions[state.session_id].profile.can_see_inactive_cursors"
|
||||||
:sessions="state.sessions"
|
:sessions="state.sessions"
|
||||||
:sessionId="state.session_id"
|
:sessionId="state.session_id"
|
||||||
:screenSize="state.screen.size"
|
:screenSize="state.screen.size"
|
||||||
@ -25,7 +25,7 @@
|
|||||||
"
|
"
|
||||||
:cursorDraw="cursorDrawFunction"
|
:cursorDraw="cursorDrawFunction"
|
||||||
:implicitControl="state.control.implicit_hosting && state.sessions[state.session_id].profile.can_host"
|
:implicitControl="state.control.implicit_hosting && state.sessions[state.session_id].profile.can_host"
|
||||||
:inactiveCursors="state.cursors.enabled"
|
:inactiveCursors="state.cursors.enabled && state.sessions[state.session_id].profile.sends_inactive_cursor"
|
||||||
@implicitControlRequest="connection.websocket.send('control/request')"
|
@implicitControlRequest="connection.websocket.send('control/request')"
|
||||||
@implicitControlRelease="connection.websocket.send('control/release')"
|
@implicitControlRelease="connection.websocket.send('control/release')"
|
||||||
@updateKeyboardModifiers="updateKeyboardModifiers($event)"
|
@updateKeyboardModifiers="updateKeyboardModifiers($event)"
|
||||||
|
@ -73,6 +73,8 @@ export interface MemberProfile {
|
|||||||
can_watch: boolean
|
can_watch: boolean
|
||||||
can_host: boolean
|
can_host: boolean
|
||||||
can_access_clipboard: boolean
|
can_access_clipboard: boolean
|
||||||
|
sends_inactive_cursor: boolean
|
||||||
|
can_see_inactive_cursors: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SessionState {
|
export interface SessionState {
|
||||||
|
@ -107,6 +107,8 @@ export interface MemberProfile {
|
|||||||
can_watch: boolean
|
can_watch: boolean
|
||||||
can_host: boolean
|
can_host: boolean
|
||||||
can_access_clipboard: boolean
|
can_access_clipboard: boolean
|
||||||
|
sends_inactive_cursor: boolean
|
||||||
|
can_see_inactive_cursors: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SessionState {
|
export interface SessionState {
|
||||||
|
Loading…
Reference in New Issue
Block a user