Skip to content

Commit

Permalink
fix: distinguish update tips (#8023)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet authored Sep 11, 2024
1 parent 054b2f5 commit b2f21ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ export const ConfigurationPanel = ({ from, blueprint, onRefresh, onChangeTab }:
}),
{
setOperating,
formatMessage: () => 'Update blueprint successful.',
formatMessage: () =>
from === FromEnum.project ? 'Update project successful.' : 'Update blueprint successful.',
},
);

Expand Down
3 changes: 2 additions & 1 deletion config-ui/src/routes/blueprint/detail/status-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export const StatusPanel = ({ from, blueprint, pipelineId, onRefresh }: Props) =
}),
{
setOperating,
formatMessage: () => 'Update blueprint successful.',
formatMessage: () =>
from === FromEnum.project ? 'Update project successful.' : 'Update blueprint successful.',
},
);

Expand Down

0 comments on commit b2f21ba

Please sign in to comment.