Skip to content

Commit

Permalink
add locked_logins.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Apr 20, 2024
1 parent 22524f7 commit fb0af48
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/component/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/component/types/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions src/page/components/events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit fb0af48

Please sign in to comment.