fix: address final widget review findings
This commit is contained in:
1 parent
44b55a401c
commit
c09ed96978
8 files changed
+149
-37
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { IconBusStop } from "@tabler/icons-react";
|
||||
import { IconBusStop, IconWorldOff } from "@tabler/icons-react";
|
||||
import { z } from "zod/v4";
|
||||
|
||||
import { clientApi } from "@homarr/api/client";
|
||||
@@ -9,6 +9,13 @@ import { optionsBuilder } from "../options";
|
||||
|
||||
export const { componentLoader, definition } = createWidgetDefinition("timetable", {
|
||||
icon: IconBusStop,
|
||||
errors: {
|
||||
BAD_REQUEST: {
|
||||
icon: IconWorldOff,
|
||||
message: (t) => t("widget.timetable.error.customSourceUnavailable"),
|
||||
hideLogsLink: true,
|
||||
},
|
||||
},
|
||||
createOptions() {
|
||||
return optionsBuilder.from((factory) => ({
|
||||
baseUrl: factory.text({
|
||||
|
||||
Reference in new issue
Block a user