web/admin: remove unused imports

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-11 12:12:31 +02:00
parent ff9ff18c11
commit c99afe0ad4
19 changed files with 890 additions and 849 deletions

View File

@ -3,7 +3,6 @@ import { t } from "@lingui/macro";
import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html";
import { DEFAULT_CONFIG } from "../../../api/Config";
import { Form } from "../../../elements/forms/Form";
import "../../../elements/forms/FormGroup";
import "../../../elements/forms/HorizontalFormElement";
import { ifDefined } from "lit-html/directives/if-defined";
@ -32,6 +31,12 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
@property({attribute: false})
plexResources?: PlexResource[];
get defaultInstance(): PlexSource | undefined {
return {
clientId: randomString(40)
} as PlexSource;
}
getSuccessMessage(): string {
if (this.instance) {
return t`Successfully updated source.`;