mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
Set card attachment as background image. Part 3.
Thanks to xet7 ! Related #486
This commit is contained in:
parent
0afac8bbff
commit
01a1eb177e
4 changed files with 26 additions and 25 deletions
|
|
@ -691,6 +691,14 @@ BlazeComponent.extendComponent({
|
|||
Popup.back();
|
||||
event.preventDefault();
|
||||
},
|
||||
'click .js-remove-background-image'() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
currentBoard.setBackgroundImageURL("");
|
||||
Utils.setBackgroundImage("");
|
||||
Popup.back();
|
||||
//Utils.reload();
|
||||
event.preventDefault();
|
||||
},
|
||||
},
|
||||
];
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue