diff --git a/web/src/admin/system-tasks/ScheduleList.ts b/web/src/admin/system-tasks/ScheduleList.ts index 3e181d185c..4da456b530 100644 --- a/web/src/admin/system-tasks/ScheduleList.ts +++ b/web/src/admin/system-tasks/ScheduleList.ts @@ -17,7 +17,7 @@ import { customElement, property } from "lit/decorators.js"; import PFDescriptionList from "@patternfly/patternfly/components/DescriptionList/description-list.css"; -import { Schedule, TasksApi } from "@goauthentik/api"; +import { ModelEnum, Schedule, TasksApi } from "@goauthentik/api"; @customElement("ak-schedule-list") export class ScheduleList extends Table { @@ -153,14 +153,13 @@ export class ScheduleList extends Table { } renderExpanded(item: Schedule): TemplateResult { - // TODO: no hardcoded things - // grep authentik_tasks_schedules.schedule gen-ts-api + const [appLabel, modelName] = ModelEnum.AuthentikTasksSchedulesSchedule.split("."); return html`