Revert drag handle changes.

This commit is contained in:
Lauri Ojansivu 2019-10-03 06:03:11 +03:00
parent 5bc355f9a5
commit f3b858ca21
17 changed files with 17 additions and 265 deletions

View file

@ -16,11 +16,6 @@ template(name="swimlaneFixedHeader")
unless currentUser.isCommentOnly
a.fa.fa-plus.js-open-add-swimlane-menu.swimlane-header-plus-icon
a.fa.fa-navicon.js-open-swimlane-menu
if isMiniScreen
a.swimlane-header-menu-miniscreen-handle.handle.fa.fa-arrows.js-swimlane-header-handle
unless isMiniScreen
if showDesktopDragHandles
a.swimlane-header-menu-handle.handle.fa.fa-arrows.js-swimlane-header-handle
template(name="editSwimlaneTitleForm")
.list-composer

View file

@ -28,12 +28,6 @@ BlazeComponent.extendComponent({
},
}).register('swimlaneHeader');
Template.swimlaneHeader.helpers({
showDesktopDragHandles() {
return Meteor.user().hasShowDesktopDragHandles();
},
});
Template.swimlaneActionPopup.events({
'click .js-set-swimlane-color': Popup.open('setSwimlaneColor'),
'click .js-close-swimlane'(event) {

View file

@ -101,8 +101,6 @@ function initSortable(boardComponent, $listsDom) {
// is not a board member
boardComponent.autorun(() => {
const $listDom = $listsDom;
if ($listDom.data('sortable')) {
$listsDom.sortable(
'option',
@ -110,33 +108,6 @@ function initSortable(boardComponent, $listsDom) {
MultiSelection.isActive() || !userIsMember(),
);
}
if (Utils.isMiniScreen()) {
this.$('.js-lists').sortable({
handle: '.list-header-menu-handle',
});
this.$('.js-swimlanes').sortable({
handle: '.swimlane-header-menu-miniscreen-handle',
});
} else {
if (Meteor.user().hasShowDesktopDragHandles()) {
this.$('.js-lists').sortable({
handle: '.list-header-menu-handle',
});
this.$('.js-swimlanes').sortable({
handle: '.swimlane-header-menu-handle',
});
} else {
this.$('.js-lists').sortable({
handle: '.list-header',
});
this.$('.js-swimlanes').sortable({
handle: '.swimlane-header',
});
}
}
});
}
@ -187,7 +158,6 @@ BlazeComponent.extendComponent({
'p',
'.js-list-header',
];
if (
$(evt.target).closest(noDragInside.join(',')).length === 0 &&
this.$('.swimlane').prop('clientHeight') > evt.offsetY
@ -263,9 +233,6 @@ BlazeComponent.extendComponent({
}).register('addListForm');
Template.swimlane.helpers({
showDesktopDragHandles() {
return Meteor.user().hasShowDesktopDragHandles();
},
canSeeAddList() {
return (
Meteor.user() &&
@ -308,9 +275,3 @@ BlazeComponent.extendComponent({
initSortable(boardComponent, $listsDom);
},
}).register('listsGroup');
Template.listsGroup.helpers({
showDesktopDragHandles() {
return Meteor.user().hasShowDesktopDragHandles();
},
});

View file

@ -50,22 +50,6 @@
margin-left: 5px
margin-right: 10px
.swimlane-header-menu-handle
position: absolute
padding: 7px
top: 50%
transform: translateY(-50%)
left: 300px
font-size: 18px
.swimlane-header-menu-miniscreen-handle
position: absolute
padding: 7px
top: 50%
transform: translateY(-50%)
left: 487px
font-size: 18px
.list-group
height: 100%