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

@ -3026,6 +3026,10 @@ msgstr "RSA-SHA384"
msgid "RSA-SHA512"
msgstr "RSA-SHA512"
#: src/pages/sources/plex/PlexSourceForm.ts
msgid "Re-authenticate with plex"
msgstr "Re-authenticate with plex"
#: src/pages/flows/StageBindingForm.ts
msgid "Re-evaluate policies"
msgstr "Re-evaluate policies"

View File

@ -3018,6 +3018,10 @@ msgstr ""
msgid "RSA-SHA512"
msgstr ""
#: src/pages/sources/plex/PlexSourceForm.ts
msgid "Re-authenticate with plex"
msgstr ""
#: src/pages/flows/StageBindingForm.ts
msgid "Re-evaluate policies"
msgstr ""

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">