mirror of
https://github.com/wekan/wekan.git
synced 2026-02-11 18:54:22 +01:00
Merge branch 'main' into autofocus-migration
This commit is contained in:
commit
42968d4c15
46 changed files with 1002 additions and 1467 deletions
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue