Skip to content

Commit

Permalink
fix: Remove the status bar in the pipeline list
Browse files Browse the repository at this point in the history
Signed-off-by: harrisonliu5 <harrisonliu_5@163.com>
  • Loading branch information
harrisonliu5 committed Jul 16, 2020
1 parent 19bf8d0 commit 75d5cc7
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions src/pages/devops/containers/Pipelines/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import Health from 'projects/components/Health'
import EmptyTable from 'components/Cards/EmptyTable'
import DeleteModal from 'components/Modals/Delete'
import CreateModal from 'components/Modals/Create'
import Status from 'devops/components/Status'
import { getPipelineStatus } from 'utils/status'
import ParamsModal from 'components/Forms/CICDs/paramsModal'
import Banner from 'components/Cards/Banner'
import PipelineStore from 'stores/devops/pipelines'
Expand Down Expand Up @@ -407,33 +405,17 @@ class CICDs extends React.Component {
)
},
},
{
title: t('Status'),
width: '15%',
render: record => {
if (record.numberOfSuccessfulBranches !== undefined) {
return (
<span className={styles.sourcePipelineStatus}>
<span className={styles.pipelineSuccessNumber}>
{record.numberOfSuccessfulBranches}
</span>
{t('branch success')}
</span>
)
}
return <Status {...getPipelineStatus(get(record, 'latestRun', {}))} />
},
},

{
title: t('WeatherScore'),
dataIndex: 'weatherScore',
width: '20%',
width: '30%',
render: weatherScore => <Health score={weatherScore} />,
},
{
title: t('Branch'),
dataIndex: 'totalNumberOfBranches',
width: '20%',
width: '25%',
render: totalNumberOfBranches =>
totalNumberOfBranches === undefined ? '-' : totalNumberOfBranches,
},
Expand Down

0 comments on commit 75d5cc7

Please sign in to comment.