web/admin: add re-authenticate button for plex

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#1205
This commit is contained in:
Jens Langhammer
2021-08-01 11:47:39 +02:00
parent 5571aa32b6
commit ac77291b6d
3 changed files with 15 additions and 1 deletions

View File

@ -85,7 +85,13 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
${t`Load servers`}
</button>`;
}
return html`<ak-form-element-horizontal name="allowFriends">
return html`
<button class="pf-c-button pf-m-secondary" type="button" @click=${() => {
this.doAuth();
}}>
${t`Re-authenticate with plex`}
</button>
<ak-form-element-horizontal name="allowFriends">
<div class="pf-c-check">
<input type="checkbox" class="pf-c-check__input" ?checked=${first(this.instance?.allowFriends, true)}>
<label class="pf-c-check__label">