OSDN Git Service
(root)
/
bytom
/
bytom-electron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c63846e
)
fixed the error generate raw transactions.
author
Zhiting Lin
<zlin035@uottawa.ca>
Fri, 20 Jul 2018 03:38:40 +0000
(11:38 +0800)
committer
Zhiting Lin
<zlin035@uottawa.ca>
Fri, 20 Jul 2018 03:38:40 +0000
(11:38 +0800)
src/features/transactions/components/New/New.jsx
patch
|
blob
|
history
diff --git
a/src/features/transactions/components/New/New.jsx
b/src/features/transactions/components/New/New.jsx
index
0acfef8
..
3788d74
100644
(file)
--- a/
src/features/transactions/components/New/New.jsx
+++ b/
src/features/transactions/components/New/New.jsx
@@
-33,7
+33,7
@@
class Form extends React.Component {
})
}
this.props.router.setRouteLeaveHook(this.props.route, (nextLocation) => {
- if (!(this.handleFormEmpty() || nextLocation.state))
+ if (!(this.handleFormEmpty() || nextLocation.state
|| nextLocation.pathname.startsWith('/transactions/generated/')
))
return this.props.lang === 'zh'? '交易表格有未完成内容,你确定要离开么?' : 'Your work is not saved! Are you sure you want to leave?'
})
}