mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-15 00:11:15 +03:00
allow custom add button text via uiSchema
This commit is contained in:
parent
6bcdbd7232
commit
43d35299f7
@ -60,7 +60,9 @@ export function AddPropertyButton({
|
||||
className="gap-2"
|
||||
>
|
||||
<LuPlus className="h-4 w-4" />
|
||||
{t("button.add", { ns: "common", defaultValue: "Add" })}
|
||||
{typeof uiSchema?.["ui:options"]?.addButtonText === "string"
|
||||
? uiSchema["ui:options"].addButtonText
|
||||
: t("button.add", { ns: "common", defaultValue: "Add" })}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user