Skip to content

Commit

Permalink
Merge pull request #6841 from rmsamitha/master
Browse files Browse the repository at this point in the history
Fixing i18n issue in LifeCycle status changing message
  • Loading branch information
tmkasun authored Aug 26, 2019
2 parents 7e3950b + fc89975 commit 3b4ba44
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class LifeCycleUpdate extends Component {
this.props.handleUpdate(true);
let newState = response.body.lifecycleState.state;
this.setState({ newState });
const { intl } = this.props;

Alert.info(intl.formatMessage({
id: 'Apis.Details.LifeCycle.LifeCycleUpdate.success',
Expand All @@ -88,7 +89,7 @@ class LifeCycleUpdate extends Component {
})
.catch(error_response => {
console.log(error_response);
Alert.error(JSON.stringify(error_response));
Alert.error(JSON.stringify(error_response.message));
});
}

Expand Down

0 comments on commit 3b4ba44

Please sign in to comment.