This commit is contained in:
Lauri Ojansivu 2020-04-27 02:56:11 +03:00
parent ee106d1cb4
commit 09666585e2

View file

@ -273,7 +273,10 @@ BlazeComponent.extendComponent({
// Disable sorting if the current user is not a board member // Disable sorting if the current user is not a board member
this.autorun(() => { this.autorun(() => {
const disabled = !userIsMember() || Utils.isMiniScreen(); const disabled = !userIsMember() || Utils.isMiniScreen();
if ($checklistsDom.data('uiSortable') || $checklistsDom.data('sortable')) { if (
$checklistsDom.data('uiSortable') ||
$checklistsDom.data('sortable')
) {
$checklistsDom.sortable('option', 'disabled', disabled); $checklistsDom.sortable('option', 'disabled', disabled);
} }
if ($subtasksDom.data('uiSortable') || $subtasksDom.data('sortable')) { if ($subtasksDom.data('uiSortable') || $subtasksDom.data('sortable')) {