feat(beszel): add searchable system select input for widget options
Replace plain text systemId option with a dedicated beszelSystem factory type backed by a searchable Select that fetches available systems from the integration. Shows proper states for no integration, loading, and no systems found.
This commit is contained in:
5 files changed
+60
-2
No files matched your search
@@ -175,6 +175,11 @@ const optionsFactory = {
|
||||
defaultValue: "",
|
||||
withDescription: true,
|
||||
}),
|
||||
beszelSystem: () => ({
|
||||
type: "beszelSystem" as const,
|
||||
defaultValue: "",
|
||||
withDescription: true,
|
||||
}),
|
||||
customWidgetSelect: (input?: CommonInput<string>) => ({
|
||||
type: "customWidgetSelect" as const,
|
||||
defaultValue: input?.defaultValue ?? "",
|
||||
|
||||
Reference in new issue
Block a user