@@ -17,15 +17,15 @@ import { DEFAULT_THEMEID } from "comps/utils/themeUtil";
17
17
import { NumberControl , RangeControl , StringControl } from "comps/controls/codeControl" ;
18
18
import { IconControl } from "comps/controls/iconControl" ;
19
19
import { dropdownControl } from "comps/controls/dropdownControl" ;
20
- import { ApplicationCategoriesEnum } from "constants/applicationConstants" ;
20
+ import { ApplicationCategoriesEnum , AppUILayoutType } from "constants/applicationConstants" ;
21
21
import { BoolControl } from "../controls/boolControl" ;
22
- import { getNpmPackageMeta } from "../utils/remote" ;
23
22
import { getPromiseAfterDispatch } from "@lowcoder-ee/util/promiseUtils" ;
24
23
import type { AppState } from "@lowcoder-ee/redux/reducers" ;
25
24
import { ColorControl } from "../controls/colorControl" ;
26
25
import { DEFAULT_ROW_COUNT } from "@lowcoder-ee/layout/calculateUtils" ;
27
26
import { AppSettingContext } from "../utils/appSettingContext" ;
28
- import { isPublicApplication } from "@lowcoder-ee/redux/selectors/applicationSelector" ;
27
+ import { currentApplication , isPublicApplication } from "@lowcoder-ee/redux/selectors/applicationSelector" ;
28
+ import { isAggregationApp } from "util/appUtils" ;
29
29
30
30
const TITLE = trans ( "appSetting.title" ) ;
31
31
const USER_DEFINE = "__USER_DEFINE" ;
@@ -234,6 +234,7 @@ type ChildrenInstance = RecordConstructorToComp<typeof childrenMap> & {
234
234
} ;
235
235
236
236
function AppGeneralSettingsModal ( props : ChildrenInstance ) {
237
+ const application = useSelector ( currentApplication ) ;
237
238
const lowcoderCompsMeta = useSelector ( ( state : AppState ) => state . npmPlugin . packageMeta [ 'lowcoder-comps' ] ) ;
238
239
const [ lowcoderCompVersions , setLowcoderCompVersions ] = useState ( [ 'latest' ] ) ;
239
240
const {
@@ -288,7 +289,8 @@ function AppGeneralSettingsModal(props: ChildrenInstance) {
288
289
</ div >
289
290
</ DivStyled >
290
291
</ BaseSection >
291
- < BaseSection
292
+ { application && ! isAggregationApp ( AppUILayoutType [ application . applicationType ] ) &&
293
+ < BaseSection
292
294
name = { "Lowcoder Comps" }
293
295
width = { 288 }
294
296
noMargin
@@ -320,6 +322,7 @@ function AppGeneralSettingsModal(props: ChildrenInstance) {
320
322
/>
321
323
</ DivStyled >
322
324
</ BaseSection >
325
+ }
323
326
< BaseSection
324
327
name = { "Shortcuts" }
325
328
width = { 288 }
@@ -520,7 +523,6 @@ export const AppSettingsComp = new MultiCompBuilder(childrenMap, (props) => {
520
523
const { settingType } = useContext ( AppSettingContext ) ;
521
524
const themeList = useSelector ( getThemeList ) || [ ] ;
522
525
const defaultTheme = ( useSelector ( getDefaultTheme ) || "" ) . toString ( ) ;
523
-
524
526
return settingType === 'canvas'
525
527
? < AppCanvasSettingsModal { ...children } themeList = { themeList } defaultTheme = { defaultTheme } />
526
528
: < AppGeneralSettingsModal { ...children } themeList = { themeList } defaultTheme = { defaultTheme } /> ;
0 commit comments