mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 21:47:10 -04:00
Don't save a draft if the card description hasn't been modified
This commit is contained in:
parent
72fe5fd47e
commit
9efd565f74
1 changed files with 4 additions and 1 deletions
|
@ -88,7 +88,10 @@ BlazeComponent.extendComponent({
|
|||
|
||||
close(isReset = false) {
|
||||
if (this.isOpen.get() && ! isReset) {
|
||||
UnsavedEdits.set(this._getUnsavedEditKey(), this.getValue());
|
||||
let draft = $.trim(this.getValue());
|
||||
if (draft !== Cards.findOne(Session.get('currentCard')).description) {
|
||||
UnsavedEdits.set(this._getUnsavedEditKey(), this.getValue());
|
||||
}
|
||||
}
|
||||
super();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue