fix: refresh board after drag & drop move
This commit is contained in:
@@ -277,7 +277,12 @@
|
|||||||
onEnd: function(evt) {
|
onEnd: function(evt) {
|
||||||
const cardId = evt.item.dataset.cardId;
|
const cardId = evt.item.dataset.cardId;
|
||||||
const toStatus = evt.to.dataset.status;
|
const toStatus = evt.to.dataset.status;
|
||||||
fetch(`/api/move?owner=${owner}&repo=${repo}&issue_id=${cardId}&column=${toStatus}`, { method: 'POST' });
|
fetch(`/api/move?owner=${owner}&repo=${repo}&issue_id=${cardId}&column=${toStatus}`, { method: 'POST' })
|
||||||
|
.then(() => {
|
||||||
|
// ponytail: refresh current view after move
|
||||||
|
const activeTab = document.querySelector('.view-tab.active');
|
||||||
|
if (activeTab) activeTab.click();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user