Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: After editing the pipeline configuration, the pipeline disappears #2814

Merged
merged 1 commit into from
Dec 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/pages/devops/containers/Pipelines/Detail/Layout/pipeline.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,16 @@ export default class PipelineDetailLayout extends React.Component {
return !updateTime ? '-' : moment(updateTime).format('YYYY-MM-DD HH:mm:ss')
}

fetchPipelineConfig = async () => {
const { params } = this.props.match
await this.store.fetchDetail({ ...params, isSilent: true })
await this.getPipeLineConfig()
}

getOperations = () => {
const { detail } = toJS(this.store)
const { devops, cluster, workspace, name } = this.props.match.params
const { params } = this.props.match
const { devops, cluster, workspace, name } = params

return [
{
Expand All @@ -143,8 +150,8 @@ export default class PipelineDetailLayout extends React.Component {
type: 'control',
text: t('EDIT_SETTINGS'),
action: 'edit',
onClick: () => {
this.getPipeLineConfig()
onClick: async () => {
await this.fetchPipelineConfig()
this.trigger('pipeline.advance.edit', {
devops,
cluster,
Expand Down