Merge branch 'main' into autofocus-migration

This commit is contained in:
Harry Adel 2026-01-24 01:58:25 +02:00 committed by GitHub
commit 42968d4c15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 1002 additions and 1467 deletions

View file

@ -268,7 +268,7 @@ hotkeys('space', (event) => {
}
});
const archiveCard = (event) => {
const archiveCard = async (event) => {
event.preventDefault();
const cardId = getSelectedCardId();
if (!cardId) {
@ -282,7 +282,7 @@ const archiveCard = (event) => {
if (Utils.canModifyBoard()) {
const card = Cards.findOne(cardId);
card.archive();
await card.archive();
}
};

View file

@ -2,14 +2,14 @@ import { ReactiveCache } from '/imports/reactiveCache';
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
Utils = {
setBackgroundImage(url) {
async setBackgroundImage(url) {
const currentBoard = Utils.getCurrentBoard();
if (currentBoard.backgroundImageURL !== undefined) {
$(".board-wrapper").css({"background":"url(" + currentBoard.backgroundImageURL + ")","background-size":"cover"});
$(".swimlane,.swimlane .list,.swimlane .list .list-body,.swimlane .list:first-child .list-body").css({"background-color":"transparent"});
$(".minicard").css({"opacity": "0.9"});
} else if (currentBoard["background-color"]) {
currentBoard.setColor(currentBoard["background-color"]);
await currentBoard.setColor(currentBoard["background-color"]);
}
},
/** returns the current board id