mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Added widget property filters, and filtered general from modal widget (#3596)
This commit is contained in:
parent
ebd597f8fe
commit
c8685e92fc
1 changed files with 11 additions and 1 deletions
|
|
@ -53,6 +53,14 @@ export const baseComponentProperties = (
|
|||
validations,
|
||||
darkMode
|
||||
) => {
|
||||
// Add widget title to section key to filter that property section from specified widgets' settings
|
||||
const accordionFilters = {
|
||||
Properties: [],
|
||||
Events: [],
|
||||
Validation: [],
|
||||
General: ['Modal'],
|
||||
Layout: [],
|
||||
};
|
||||
let items = [];
|
||||
if (properties.length > 0) {
|
||||
items.push({
|
||||
|
|
@ -159,5 +167,7 @@ export const baseComponentProperties = (
|
|||
),
|
||||
});
|
||||
|
||||
return items;
|
||||
return items.filter(
|
||||
(item) => !(item.title in accordionFilters && accordionFilters[item.title].includes(componentMeta.component))
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue