add locked_logins.

This commit is contained in:
Miroslav Šedivý 2024-04-20 14:28:00 +02:00
parent 22524f7d71
commit fb0af48376
3 changed files with 14 additions and 0 deletions

View File

@ -209,6 +209,7 @@ const state = reactive<NekoState>({
sessions: {},
settings: {
private_mode: false,
locked_logins: false,
locked_controls: false,
implicit_hosting: false,
inactive_cursors: false,
@ -755,6 +756,7 @@ function clear() {
state.sessions = {} // TODO: Vue.Set
state.settings = {
private_mode: false,
locked_logins: false,
locked_controls: false,
implicit_hosting: false,
inactive_cursors: false,

View File

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

View File

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