Card Details can be opened in a new tab on mobile view

This commit is contained in:
Martin Filser 2021-10-19 17:02:49 +02:00
parent 27213245ef
commit bcb5cfb235
2 changed files with 9 additions and 17 deletions

View file

@ -149,7 +149,9 @@ BlazeComponent.extendComponent({
// XXX We should probably modify the minicard href attribute instead of
// overwriting the event in case the card is already selected.
} else if (Utils.isMiniScreen()) {
evt.preventDefault();
Session.set('popupCard', this.currentData()._id);
this.cardDetailsPopup(evt);
} else if (Session.equals('currentCard', this.currentData()._id)) {
evt.stopImmediatePropagation();
evt.preventDefault();
@ -228,7 +230,6 @@ BlazeComponent.extendComponent({
return [
{
'click .js-minicard': this.clickOnMiniCard,
'click .js-minicard-popup': this.cardDetailsPopup,
'click .js-toggle-multi-selection': this.toggleMultiSelection,
'click .open-minicard-composer': this.scrollToBottom,
submit: this.addCard,