mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 18:56:22 +00:00
編集中キャンセルを押しても消える情報があれば警告をだす
This commit is contained in:
@@ -14,7 +14,6 @@ import {
|
|||||||
clearSearch,
|
clearSearch,
|
||||||
lockStatus,
|
lockStatus,
|
||||||
unlockStatus,
|
unlockStatus,
|
||||||
clearNewArticle,
|
|
||||||
updateArticle,
|
updateArticle,
|
||||||
destroyArticle,
|
destroyArticle,
|
||||||
NEW
|
NEW
|
||||||
@@ -248,9 +247,7 @@ export default class ArticleDetail extends React.Component {
|
|||||||
handleCancelButtonClick (e) {
|
handleCancelButtonClick (e) {
|
||||||
let { activeArticle, dispatch } = this.props
|
let { activeArticle, dispatch } = this.props
|
||||||
|
|
||||||
dispatch(unlockStatus())
|
|
||||||
if (activeArticle.status === NEW) {
|
if (activeArticle.status === NEW) {
|
||||||
dispatch(clearNewArticle())
|
|
||||||
dispatch(switchArticle(null))
|
dispatch(switchArticle(null))
|
||||||
}
|
}
|
||||||
dispatch(switchMode(IDLE_MODE))
|
dispatch(switchMode(IDLE_MODE))
|
||||||
|
|||||||
Reference in New Issue
Block a user