mirror of
https://github.com/wekan/wekan.git
synced 2026-01-21 16:56:11 +01:00
Move every Boards.findOne(Session.get('currentBoard')) to the ReactiveCache
This commit is contained in:
parent
cecf69af02
commit
9022e9949f
18 changed files with 69 additions and 69 deletions
|
|
@ -326,7 +326,7 @@ BlazeComponent.extendComponent({
|
|||
return ret;
|
||||
},
|
||||
isBackgroundImage() {
|
||||
//const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
//const currentBoard = Utils.getCurrentBoard();
|
||||
//return currentBoard.backgroundImageURL === $(".attachment-thumbnail-img").attr("src");
|
||||
return false;
|
||||
},
|
||||
|
|
@ -342,14 +342,14 @@ BlazeComponent.extendComponent({
|
|||
Popup.back();
|
||||
},
|
||||
'click .js-add-background-image'() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
const currentBoard = Utils.getCurrentBoard();
|
||||
currentBoard.setBackgroundImageURL(attachmentActionsLink);
|
||||
Utils.setBackgroundImage(attachmentActionsLink);
|
||||
Popup.back();
|
||||
event.preventDefault();
|
||||
},
|
||||
'click .js-remove-background-image'() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
const currentBoard = Utils.getCurrentBoard();
|
||||
currentBoard.setBackgroundImageURL("");
|
||||
Utils.setBackgroundImage("");
|
||||
Popup.back();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue