1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-23 01:20:11 +00:00

Merge pull request #251 from aleksasiriski/patch-1

fixed setExpiry() and added checked to admin only
This commit is contained in:
Harvey Tindall 2023-02-02 09:27:12 +00:00 committed by GitHub
commit 6cd846dfd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -137,7 +137,7 @@
<input type="radio" class="mr-2" name="ui-jellyfin_login" value="true" checked><span>{{ .lang.Login.authorizeWithJellyfin }}</span> <input type="radio" class="mr-2" name="ui-jellyfin_login" value="true" checked><span>{{ .lang.Login.authorizeWithJellyfin }}</span>
</label> </label>
<label class="row switch pl-4 pb-4"> <label class="row switch pl-4 pb-4">
<input type="checkbox" class="mr-2" id="ui-admin_only"><span>{{ .lang.Login.adminOnly }}</span> <input type="checkbox" class="mr-2" id="ui-admin_only" checked><span>{{ .lang.Login.adminOnly }}</span>
</label> </label>
<label class="row switch pl-4 pb-2"> <label class="row switch pl-4 pb-2">
<input type="checkbox" class="mr-2" id="ui-allow_all"><span>{{ .lang.Login.allowAll }}</span> <input type="checkbox" class="mr-2" id="ui-allow_all"><span>{{ .lang.Login.allowAll }}</span>

View File

@ -1334,10 +1334,8 @@ export class accountsList {
const list = this._collectUsers(); const list = this._collectUsers();
let applyList: string[] = []; let applyList: string[] = [];
for (let id of list) { for (let id of list) {
if (this._users[id].expiry || enableUser) {
applyList.push(id); applyList.push(id);
} }
}
this._enableExpiryReason.classList.add("unfocused"); this._enableExpiryReason.classList.add("unfocused");
let header: string; let header: string;
if (enableUser) { if (enableUser) {