* Added cancel button in the delete category modal Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
895150050f
Коммит
61dae292f7
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user