Add popup and changelog for linked card fixes.

This commit is contained in:
Lauri Ojansivu 2020-05-14 01:04:52 +03:00
parent 28cffc4328
commit ea74a34d72
3 changed files with 25 additions and 2 deletions

View file

@ -960,7 +960,18 @@ BlazeComponent.extendComponent({
if (Cards.find({ linkedId: this._id }).count() === 0) {
Cards.remove(this._id);
} else {
// TODO popup...
// TODO: Maybe later we can list where the linked cards are.
// Now here is popup with a hint that the card cannot be deleted
// as there are linked cards.
// Related:
// client/components/lists/listHeader.js about line 248
// https://github.com/wekan/wekan/issues/2785
const message = `${TAPi18n.__(
'delete-linked-card-before-this-card',
)} linkedId: ${
this._id
} at client/components/cards/cardDetails.js and https://github.com/wekan/wekan/issues/2785`;
alert(message);
}
Utils.goBoardId(this.boardId);
}),