Fixed Copy card to list does not work, by reverting clientside changes of PR 4333.

Thanks to Meeques, PaulITsoft and xet7 !

Fixes #4341,
fixes #4343
This commit is contained in:
Lauri Ojansivu 2022-02-07 15:15:24 +02:00
parent 993e99330f
commit a5b376e6b5
5 changed files with 3 additions and 51 deletions

View file

@ -203,12 +203,6 @@ template(name="boardCardSettingsPopup")
span
i.fa.fa-sort
| {{_ 'card-sorting-by-number'}}
div.check-div
a.flex.js-field-has-card-show-lists(class="{{#if allowsShowLists}}is-checked{{/if}}")
.materialCheckBox(class="{{#if allowsShowLists}}is-checked{{/if}}")
span
i.fa.fa-list
| {{_ 'card-show-lists'}}
div.check-div
a.flex.js-field-has-labels(class="{{#if allowsLabels}}is-checked{{/if}}")
.materialCheckBox(class="{{#if allowsLabels}}is-checked{{/if}}")

View file

@ -827,10 +827,6 @@ BlazeComponent.extendComponent({
return this.currentBoard.allowsCardSortingByNumber;
},
allowsShowLists() {
return this.currentBoard.allowsShowLists;
},
allowsLabels() {
return this.currentBoard.allowsLabels;
},
@ -1065,22 +1061,6 @@ BlazeComponent.extendComponent({
this.currentBoard.allowsCardSortingByNumber,
);
},
'click .js-field-has-card-show-lists'(evt) {
evt.preventDefault();
this.currentBoard.allowsShowLists = !this.currentBoard
.allowsShowLists;
this.currentBoard.setAllowsShowLists(
this.currentBoard.allowsShowLists,
);
$(`.js-field-has-card-show-lists ${MCB}`).toggleClass(
CKCLS,
this.currentBoard.allowsShowLists,
);
$('.js-field-has-card-show-lists').toggleClass(
CKCLS,
this.currentBoard.allowsShowLists,
);
},
'click .js-field-has-labels'(evt) {
evt.preventDefault();
this.currentBoard.allowsLabels = !this.currentBoard.allowsLabels;