Skip to content

Commit 9ab5d98

Browse files
committed
Merge branch 'main' into thulasizwe/chore/configProvider
2 parents 03460ba + fc08530 commit 9ab5d98

File tree

12 files changed

+606
-574
lines changed

12 files changed

+606
-574
lines changed

shesha-reactjs/src/components/kanban/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useKanbanActions } from './utils';
99
import { addPx } from '@/designer-components/_settings/utils';
1010

1111
const KanbanReactComponent: React.FC<IKanbanProps> = (props) => {
12-
const { gap, groupingProperty, createFormId, items, componentName, editFormId, stylingBox } = props;
12+
const { gap, groupingProperty, createFormId, items, componentName, editFormId } = props;
1313

1414
const { tableData, modelType } = useDataTableStore();
1515
const { message } = App.useApp();
@@ -28,7 +28,7 @@ const KanbanReactComponent: React.FC<IKanbanProps> = (props) => {
2828
const { storeSettings } = useRefListItemGroupConfigurator();
2929
const { getMetadata } = useMetadataDispatcher();
3030

31-
const styling = JSON.parse(stylingBox || '{}');
31+
const styling = JSON.parse(props.columnStyles.stylingBox || '{}');
3232
const stylingBoxAsCSS = pickStyleFromModel(styling);
3333

3434
useEffect(() => {

shesha-reactjs/src/designer-components/alert/settingsForm.ts

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const getSettings = (data: IAlertComponentProps) => {
3333
type: 'textField',
3434
id: nanoid(),
3535
propertyName: 'componentName',
36-
label: 'Component name',
36+
label: 'Component Name',
3737
size: 'small',
3838
jsSetting: true,
3939
}
@@ -163,23 +163,6 @@ export const getSettings = (data: IAlertComponentProps) => {
163163
],
164164
})
165165
.toJson()]
166-
}
167-
,
168-
{
169-
key: 'security',
170-
title: 'Security',
171-
id: securityTabId,
172-
components: [...new DesignerToolbarSettings()
173-
.addSettingsInput({
174-
id: nanoid(),
175-
inputType: 'permissions',
176-
propertyName: 'permissions',
177-
label: 'Permissions',
178-
size: 'small',
179-
parentId: securityTabId
180-
})
181-
.toJson()
182-
]
183166
},
184167
{
185168
key: 'appearance',
@@ -199,7 +182,7 @@ export const getSettings = (data: IAlertComponentProps) => {
199182
id: nanoid(),
200183
components: [...new DesignerToolbarSettings()
201184
.addSettingsInput({
202-
185+
203186
id: nanoid(),
204187
inputType: 'codeEditor',
205188
propertyName: 'style',
@@ -213,6 +196,22 @@ export const getSettings = (data: IAlertComponentProps) => {
213196
})
214197
.toJson()
215198
]
199+
},
200+
{
201+
key: 'security',
202+
title: 'Security',
203+
id: securityTabId,
204+
components: [...new DesignerToolbarSettings()
205+
.addSettingsInput({
206+
id: nanoid(),
207+
inputType: 'permissions',
208+
propertyName: 'permissions',
209+
label: 'Permissions',
210+
size: 'small',
211+
parentId: securityTabId
212+
})
213+
.toJson()
214+
]
216215
}
217216
]
218217
}).toJson(),

0 commit comments

Comments
 (0)