* 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);
|
this.props.actions.deleteCategory(this.props.category.id);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
handleCancel = () => {
|
||||||
|
this.props.onExited();
|
||||||
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<GenericModal
|
<GenericModal
|
||||||
@@ -51,6 +55,7 @@ export default class DeleteCategoryModal extends React.PureComponent<Props, Stat
|
|||||||
defaultMessage='Delete this category?'
|
defaultMessage='Delete this category?'
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
handleCancel={this.handleCancel}
|
||||||
handleConfirm={this.handleConfirm}
|
handleConfirm={this.handleConfirm}
|
||||||
confirmButtonText={(
|
confirmButtonText={(
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user