add locked_controls to state.

This commit is contained in:
Miroslav Šedivý 2023-05-14 22:51:45 +02:00
parent 13caeb3746
commit af5aefd669
3 changed files with 13 additions and 0 deletions

View File

@ -212,6 +212,7 @@
sessions: {},
settings: {
private_mode: false,
locked_controls: false,
implicit_hosting: false,
inactive_cursors: false,
merciful_reconnect: false,

View File

@ -140,6 +140,7 @@ export interface Session {
export interface Settings {
private_mode: boolean
locked_controls: boolean
implicit_hosting: boolean
inactive_cursors: boolean
merciful_reconnect: boolean

View File

@ -403,6 +403,17 @@
</div>
</td>
</tr>
<tr>
<th class="middle">settings.locked_controls</th>
<td>
<div class="space-between">
<span>{{ neko.state.settings.locked_controls }}</span>
<button @click="updateSettings({ locked_controls: !neko.state.settings.locked_controls })">
<i class="fas fa-toggle-on"></i>
</button>
</div>
</td>
</tr>
<tr>
<th class="middle">settings.implicit_hosting</th>
<td>