Merge pull request #5480 from mfilser/master

changing card color now closes the popup and doesn't refresh the whole boards page
This commit is contained in:
Lauri Ojansivu 2024-08-03 21:12:05 +03:00 committed by GitHub
commit dd6aec1ba9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -846,13 +846,15 @@ BlazeComponent.extendComponent({
'click .js-palette-color'() {
this.currentColor.set(this.currentData().color);
},
'click .js-submit'() {
'click .js-submit'(event) {
event.preventDefault();
this.currentCard.setColor(this.currentColor.get());
Popup.close();
Popup.back();
},
'click .js-remove-color'() {
'click .js-remove-color'(event) {
event.preventDefault();
this.currentCard.setColor(null);
Popup.close();
Popup.back();
},
},
];