From 40503d06b78a5edc8daf6abb39f91abbbd052921 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 13 May 2021 18:12:07 +0200 Subject: [PATCH] web/admin: improve UI for plex source Signed-off-by: Jens Langhammer --- web/src/pages/sources/plex/PlexSourceForm.ts | 65 +++++++++++--------- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/web/src/pages/sources/plex/PlexSourceForm.ts b/web/src/pages/sources/plex/PlexSourceForm.ts index d8b68c293..404f83d44 100644 --- a/web/src/pages/sources/plex/PlexSourceForm.ts +++ b/web/src/pages/sources/plex/PlexSourceForm.ts @@ -76,6 +76,40 @@ export class PlexSourceForm extends ModelForm { this.plexResources = await new PlexAPIClient(this.plexToken).getServers(); } + renderSettings(): TemplateResult { + if (!this.plexToken) { + return html` + `; + } + return html` +
+ + +
+
+ + +

${t`Select which server a user has to be a member of to be allowed to authenticate.`}

+

${t`Hold control/command to select multiple items.`}

+
`; + } + renderForm(): TemplateResult { return html`
{ name="clientId"> - -
- - -
-
- - -

${t`Select which server a user has to be a member of to be allowed to authenticate.`}

-

${t`Hold control/command to select multiple items.`}

-

- -

-
+ ${this.renderSettings()}