Skip to content

Commit

Permalink
mod: hide the import log tab in cloud (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
nianiaJR authored Mar 19, 2024
1 parent 29caed3 commit e8d8451
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/pages/Import/TaskList/TaskItem/LogModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const LogModal = (props: IProps) => {
const {
dataImport: { getLogs, downloadTaskLog, getLogDetail },
moduleConfiguration,
global: { platform },
} = useStore();
const { disableLogDownload } = moduleConfiguration.dataImport;
const { intl } = useI18n();
Expand Down Expand Up @@ -127,7 +128,7 @@ const LogModal = (props: IProps) => {
destroyOnClose={true}
footer={false}
>
<Tabs className={styles.logTab} tabBarGutter={0} tabPosition="left" onChange={handleTabChange} items={items} />
{platform !== 'cloud' && <Tabs className={styles.logTab} tabBarGutter={0} tabPosition="left" onChange={handleTabChange} items={items} />}
<div className={classnames(styles.logContainer, !disableLogDownload && styles.full)}>
{logData.map((log, index) => {
return (
Expand Down

0 comments on commit e8d8451

Please sign in to comment.