From 7e2a471903e4c2273abba6b3a0cf05fc33ebafdc Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 4 Feb 2021 10:22:14 +0100 Subject: [PATCH] web: fix linting issues --- web/src/elements/router/Route.ts | 2 +- web/src/pages/providers/ProviderListPage.ts | 13 +++++++------ web/src/pages/providers/ProviderViewPage.ts | 8 ++------ 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/web/src/elements/router/Route.ts b/web/src/elements/router/Route.ts index 2dcfba313..3a52b3559 100644 --- a/web/src/elements/router/Route.ts +++ b/web/src/elements/router/Route.ts @@ -1,7 +1,7 @@ import { html, TemplateResult } from "lit-html"; export const SLUG_REGEX = "[-a-zA-Z0-9_]+"; -export const ID_REGEX = "\d+"; +export const ID_REGEX = "\\d+"; export class Route { url: RegExp; diff --git a/web/src/pages/providers/ProviderListPage.ts b/web/src/pages/providers/ProviderListPage.ts index d70f24ecf..102b68e12 100644 --- a/web/src/pages/providers/ProviderListPage.ts +++ b/web/src/pages/providers/ProviderListPage.ts @@ -6,6 +6,7 @@ import { TablePage } from "../../elements/table/TablePage"; import "../../elements/buttons/ModalButton"; import "../../elements/buttons/SpinnerButton"; +import "../../elements/buttons/Dropdown"; import { TableColumn } from "../../elements/table/Table"; @customElement("ak-provider-list") @@ -58,13 +59,13 @@ export class ProviderListPage extends TablePage { html` - Edit + ${gettext("Edit")}
  - Delete + ${gettext("Delete")}
@@ -81,7 +82,7 @@ export class ProviderListPage extends TablePage {