We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34290a0 commit 92ec5a5Copy full SHA for 92ec5a5
web_src/js/features/repo-projects.js
@@ -63,6 +63,11 @@ async function initRepoProjectSortable() {
63
ghostClass: 'card-ghost',
64
delayOnTouchOnly: true,
65
delay: 500,
66
+ onMove: (e) => {
67
+ // prevent dropping onto column 0 because it currently can not be moved and doing
68
+ // so would raise a 500 "project board does not exist" error on backend.
69
+ if (e.related.getAttribute('data-id') === '0') return false;
70
+ },
71
onSort: async () => {
72
boardColumns = mainBoard.getElementsByClassName('project-column');
73
for (let i = 0; i < boardColumns.length; i++) {
0 commit comments