Skip to content

Commit b668155

Browse files
added loading indicator options for comp/data
1 parent adcc93f commit b668155

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

client/packages/lowcoder/src/comps/comps/appSettingsComp.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ const DivStyled = styled.div`
111111
> div:first-child {
112112
margin-bottom: 6px;
113113
}
114-
115-
.tooltipLabel {
116-
white-space: nowrap;
117-
}
118114
119115
}
120116
// custom styles for icon selector
@@ -189,6 +185,8 @@ const childrenMap = {
189185
maxWidth: dropdownInputSimpleControl(OPTIONS, USER_DEFINE, "1920"),
190186
themeId: valueComp<string>(DEFAULT_THEMEID),
191187
preventAppStylesOverwriting: withDefault(BoolControl, true),
188+
showComponentLoadingIndicators: withDefault(BoolControl, true),
189+
showDataLoadingIndicators: withDefault(BoolControl, true),
192190
customShortcuts: CustomShortcutsComp,
193191
disableCollision: valueComp<boolean>(false),
194192
lowcoderCompVersion: withDefault(StringControl, 'latest'),
@@ -211,6 +209,8 @@ function AppSettingsModal(props: ChildrenInstance) {
211209
category,
212210
showHeaderInPublic,
213211
preventAppStylesOverwriting,
212+
showComponentLoadingIndicators,
213+
showDataLoadingIndicators,
214214
lowcoderCompVersion,
215215
} = props;
216216

@@ -325,6 +325,16 @@ function AppSettingsModal(props: ChildrenInstance) {
325325
label: trans("prop.preventOverwriting"),
326326
})}
327327
</div>
328+
<div style={{ margin: '20px 0'}}>
329+
{showComponentLoadingIndicators.propertyView({
330+
label: trans("prop.showComponentLoadingIndicators"),
331+
})}
332+
</div>
333+
<div style={{ margin: '20px 0'}}>
334+
{showDataLoadingIndicators.propertyView({
335+
label: trans("prop.showDataLoadingIndicators"),
336+
})}
337+
</div>
328338
</DivStyled>
329339
<DividerStyled />
330340
<DivStyled>

0 commit comments

Comments
 (0)