mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-27 01:40:48 +00:00
allow disabling extensions from the uischema
This commit is contained in:
parent
47f94dccbb
commit
18fe02f597
@ -51,7 +51,10 @@ export default function ContainerForExtensions() {
|
||||
const extensionUiSchema: ExtensionUiSchema = JSON.parse(
|
||||
extensionUiSchemaFile.file_contents
|
||||
);
|
||||
if (extensionUiSchema.ux_elements) {
|
||||
if (
|
||||
extensionUiSchema.ux_elements &&
|
||||
!extensionUiSchema.disabled
|
||||
) {
|
||||
return extensionUiSchema.ux_elements;
|
||||
}
|
||||
} catch (jsonParseError: any) {
|
||||
|
@ -56,8 +56,9 @@ export interface UiSchemaPage {
|
||||
}
|
||||
|
||||
export interface ExtensionUiSchema {
|
||||
ux_elements?: UiSchemaUxElement[];
|
||||
pages: UiSchemaPage;
|
||||
disabled?: boolean;
|
||||
ux_elements?: UiSchemaUxElement[];
|
||||
}
|
||||
|
||||
export interface ExtensionPostBody {
|
||||
|
Loading…
x
Reference in New Issue
Block a user