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: {},
|
sessions: {},
|
||||||
settings: {
|
settings: {
|
||||||
private_mode: false,
|
private_mode: false,
|
||||||
|
locked_logins: false,
|
||||||
locked_controls: false,
|
locked_controls: false,
|
||||||
implicit_hosting: false,
|
implicit_hosting: false,
|
||||||
inactive_cursors: false,
|
inactive_cursors: false,
|
||||||
@ -755,6 +756,7 @@ function clear() {
|
|||||||
state.sessions = {} // TODO: Vue.Set
|
state.sessions = {} // TODO: Vue.Set
|
||||||
state.settings = {
|
state.settings = {
|
||||||
private_mode: false,
|
private_mode: false,
|
||||||
|
locked_logins: false,
|
||||||
locked_controls: false,
|
locked_controls: false,
|
||||||
implicit_hosting: false,
|
implicit_hosting: false,
|
||||||
inactive_cursors: false,
|
inactive_cursors: false,
|
||||||
|
@ -156,6 +156,7 @@ export interface Session {
|
|||||||
|
|
||||||
export interface Settings {
|
export interface Settings {
|
||||||
private_mode: boolean
|
private_mode: boolean
|
||||||
|
locked_logins: boolean
|
||||||
locked_controls: boolean
|
locked_controls: boolean
|
||||||
implicit_hosting: boolean
|
implicit_hosting: boolean
|
||||||
inactive_cursors: boolean
|
inactive_cursors: boolean
|
||||||
|
@ -460,6 +460,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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>
|
<tr>
|
||||||
<th class="middle">settings.locked_controls</th>
|
<th class="middle">settings.locked_controls</th>
|
||||||
<td>
|
<td>
|
||||||
|
Loading…
Reference in New Issue
Block a user