Skip to content

Commit 60ee94e

Browse files
fix(common): msp project detail display bug in orgCenter (#2351) (#2352)
Co-authored-by: hujiahao-hjh <[email protected]>
1 parent f921dbe commit 60ee94e

File tree

1 file changed

+31
-23
lines changed
  • shell/app/modules/org/pages/projects/settings/info

1 file changed

+31
-23
lines changed

shell/app/modules/org/pages/projects/settings/info/index.tsx

+31-23
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,15 @@ const Info = () => {
193193
header={
194194
<div>
195195
{i18n.t('dop:basic information')}
196-
<Tooltip title={i18n.t('projects')}>
197-
<CustomIcon
198-
type="link1"
199-
className="ml-2 hover-active"
200-
onClick={() => goTo(goTo.pages.project, { projectId: info.id })}
201-
/>
202-
</Tooltip>
196+
{notMSP ? (
197+
<Tooltip title={i18n.t('projects')}>
198+
<CustomIcon
199+
type="link1"
200+
className="ml-2 hover-active"
201+
onClick={() => goTo(goTo.pages.project, { projectId: info.id })}
202+
/>
203+
</Tooltip>
204+
) : null}
203205
</div>
204206
}
205207
actions={
@@ -329,24 +331,30 @@ const Info = () => {
329331
<Card
330332
header={i18n.t('advanced settings')}
331333
actions={
332-
<span className="hover-active" onClick={() => setProjectRollbackEditVisible(true)}>
333-
<ErdaIcon type="edit" size={16} className="mr-2 align-middle" />
334-
</span>
334+
notMSP ? (
335+
<span className="hover-active" onClick={() => setProjectRollbackEditVisible(true)}>
336+
<ErdaIcon type="edit" size={16} className="mr-2 align-middle" />
337+
</span>
338+
) : null
335339
}
336340
>
337-
<div className="label">{i18n.t('dop:rollback setting')}</div>
338-
<Row className="erda-panel-list">
339-
{Object.keys(info.rollbackConfig || {}).map((key: string) => (
340-
<Col span={6} className="flex">
341-
<div className="flex mr-3">{resourceIconMap[key]}</div>
342-
<div>
343-
<div className="label">{info.rollbackConfig[key]}</div>
344-
<div className="text-xs">{resourceMap[key]}</div>
345-
</div>
346-
</Col>
347-
))}
348-
</Row>
349-
<div className="label">{i18n.t('other settings')}</div>
341+
{notMSP ? (
342+
<>
343+
<div className="label">{i18n.t('dop:rollback setting')}</div>
344+
<Row className="erda-panel-list">
345+
{Object.keys(info.rollbackConfig || {}).map((key: string) => (
346+
<Col span={6} className="flex">
347+
<div className="flex mr-3">{resourceIconMap[key]}</div>
348+
<div>
349+
<div className="label">{info.rollbackConfig[key]}</div>
350+
<div className="text-xs">{resourceMap[key]}</div>
351+
</div>
352+
</Col>
353+
))}
354+
</Row>
355+
<div className="label">{i18n.t('other settings')}</div>
356+
</>
357+
) : null}
350358
<Row>
351359
<Col span={12} className="pr-2">
352360
<div className="erda-panel-list flex justify-between items-center">

0 commit comments

Comments
 (0)