mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
most work concluded, code needs clean up, further testing required
This commit is contained in:
parent
089dbf0cf6
commit
c865bfe497
9 changed files with 72 additions and 88 deletions
|
|
@ -22,7 +22,7 @@ BlazeComponent.extendComponent({
|
|||
const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)';
|
||||
const $cards = this.$('.js-minicards');
|
||||
$cards.sortable({
|
||||
connectWith: '.js-minicards',
|
||||
connectWith: '.js-minicards:not(.js-list-full)',
|
||||
tolerance: 'pointer',
|
||||
appendTo: 'body',
|
||||
helper(evt, item) {
|
||||
|
|
@ -81,7 +81,7 @@ BlazeComponent.extendComponent({
|
|||
function userIsMember() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
}
|
||||
|
||||
|
||||
// Disable drag-dropping if the current user is not a board member or is comment only
|
||||
this.autorun(() => {
|
||||
$cards.sortable('option', 'disabled', !userIsMember());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue