mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01: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) {
|
close(isReset = false) {
|
||||||
if (this.isOpen.get() && ! isReset) {
|
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();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue