@trudb/tru-common-lib 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5477,7 +5477,7 @@ class TruCardColumn {
|
|
|
5477
5477
|
elements[0].parentNode?.removeChild(elements[0]);
|
|
5478
5478
|
}
|
|
5479
5479
|
};
|
|
5480
|
-
drop = (e, card) => {
|
|
5480
|
+
drop = async (e, card) => {
|
|
5481
5481
|
e.stopPropagation();
|
|
5482
5482
|
for (var i = this.selectedCards.length - 1; i >= 0; --i) {
|
|
5483
5483
|
let index = card.column.cards.indexOf(this.selectedCards[i]);
|
|
@@ -5505,24 +5505,25 @@ class TruCardColumn {
|
|
|
5505
5505
|
this.selectedCards.pop();
|
|
5506
5506
|
}
|
|
5507
5507
|
;
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5508
|
+
let savePromise = this.dataContext.saveWithoutNotification();
|
|
5509
|
+
if (savePromise) {
|
|
5510
|
+
this.portal.nativeElement.classList.add('tru-card-portal-disabled');
|
|
5511
|
+
await savePromise.then(() => {
|
|
5512
|
+
this.portal.nativeElement.classList.remove('tru-card-portal-disabled');
|
|
5513
|
+
}).catch(() => {
|
|
5514
|
+
e.preventDefault();
|
|
5515
|
+
var columnElement = this.portal.nativeElement.querySelectorAll('.tru-card-portal-columns')[0];
|
|
5516
|
+
localStorage.setItem('scroll_position' + this.uniqueId, columnElement.scrollLeft);
|
|
5517
|
+
this.dataContext.revert();
|
|
5518
|
+
this.portal.nativeElement.classList.remove('tru-card-portal-disabled');
|
|
5519
|
+
});
|
|
5520
|
+
}
|
|
5521
|
+
else {
|
|
5522
|
+
e.preventDefault();
|
|
5523
|
+
var columnElement = this.portal.nativeElement.querySelectorAll('.tru-card-portal-columns')[0];
|
|
5524
|
+
localStorage.setItem('scroll_position' + this.uniqueId, columnElement.scrollLeft);
|
|
5525
|
+
this.dataContext.revert();
|
|
5526
|
+
}
|
|
5526
5527
|
}
|
|
5527
5528
|
return true;
|
|
5528
5529
|
};
|