mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add locked_controls to state.
This commit is contained in:
parent
13caeb3746
commit
af5aefd669
@ -212,6 +212,7 @@
|
|||||||
sessions: {},
|
sessions: {},
|
||||||
settings: {
|
settings: {
|
||||||
private_mode: false,
|
private_mode: false,
|
||||||
|
locked_controls: false,
|
||||||
implicit_hosting: false,
|
implicit_hosting: false,
|
||||||
inactive_cursors: false,
|
inactive_cursors: false,
|
||||||
merciful_reconnect: false,
|
merciful_reconnect: false,
|
||||||
|
@ -140,6 +140,7 @@ export interface Session {
|
|||||||
|
|
||||||
export interface Settings {
|
export interface Settings {
|
||||||
private_mode: boolean
|
private_mode: boolean
|
||||||
|
locked_controls: boolean
|
||||||
implicit_hosting: boolean
|
implicit_hosting: boolean
|
||||||
inactive_cursors: boolean
|
inactive_cursors: boolean
|
||||||
merciful_reconnect: boolean
|
merciful_reconnect: boolean
|
||||||
|
@ -403,6 +403,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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>
|
<tr>
|
||||||
<th class="middle">settings.implicit_hosting</th>
|
<th class="middle">settings.implicit_hosting</th>
|
||||||
<td>
|
<td>
|
||||||
|
Loading…
Reference in New Issue
Block a user