mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add locked_logins.
This commit is contained in:
parent
22524f7d71
commit
fb0af48376
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user