mirror of
https://github.com/wekan/wekan.git
synced 2026-01-31 05:35:16 +01:00
Merge pull request #4087 from mfilser/fix_labels_desktop_view_add_and_delete
Fix labels desktop view add and delete
This commit is contained in:
commit
46f6d1e989
2 changed files with 5 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
// Disable drag-dropping if the current user is not a board member or is comment only
|
||||
this.autorun(() => {
|
||||
if (Utils.isMiniScreen()) {
|
||||
if (Utils.isMiniScreenOrShowDesktopDragHandles()) {
|
||||
$labels.sortable({
|
||||
handle: '.label-handle',
|
||||
});
|
||||
|
|
@ -79,7 +79,7 @@ BlazeComponent.extendComponent({
|
|||
{
|
||||
'click .js-select-label'(event) {
|
||||
const card = Utils.getCurrentCard();
|
||||
const labelId = this._id;
|
||||
const labelId = this.currentData()._id;
|
||||
card.toggleLabel(labelId);
|
||||
event.preventDefault();
|
||||
},
|
||||
|
|
|
|||
|
|
@ -225,3 +225,6 @@
|
|||
ul.edit-labels-pop-over
|
||||
span.fa.label-handle
|
||||
padding-right: 10px;
|
||||
|
||||
span.fa.label-handle + .card-label
|
||||
max-width: 180px
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue