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