mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* Added cancel button in the delete category modal Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
@@ -40,6 +40,10 @@ export default class DeleteCategoryModal extends React.PureComponent<Props, Stat
|
||||
this.props.actions.deleteCategory(this.props.category.id);
|
||||
};
|
||||
|
||||
handleCancel = () => {
|
||||
this.props.onExited();
|
||||
};
|
||||
|
||||
render() {
|
||||
return (
|
||||
<GenericModal
|
||||
@@ -51,6 +55,7 @@ export default class DeleteCategoryModal extends React.PureComponent<Props, Stat
|
||||
defaultMessage='Delete this category?'
|
||||
/>
|
||||
)}
|
||||
handleCancel={this.handleCancel}
|
||||
handleConfirm={this.handleConfirm}
|
||||
confirmButtonText={(
|
||||
<FormattedMessage
|
||||
|
||||
Reference in New Issue
Block a user