parent
ea0fe83888
commit
6cd1ccef3d
|
@ -408,18 +408,17 @@ function initCommentForm() {
|
||||||
$(`.${selector}`).dropdown('setting', 'onHide', () => {
|
$(`.${selector}`).dropdown('setting', 'onHide', () => {
|
||||||
hasUpdateAction = $listMenu.data('action') === 'update'; // Update the var
|
hasUpdateAction = $listMenu.data('action') === 'update'; // Update the var
|
||||||
if (hasUpdateAction) {
|
if (hasUpdateAction) {
|
||||||
const promises = [];
|
(async function() {
|
||||||
Object.keys(items).forEach((elementId) => {
|
for (const [elementId, item] of Object.entries(items)) {
|
||||||
const item = items[elementId];
|
await updateIssuesMeta(
|
||||||
const promise = updateIssuesMeta(
|
item['update-url'],
|
||||||
item['update-url'],
|
item.action,
|
||||||
item.action,
|
item['issue-id'],
|
||||||
item['issue-id'],
|
elementId,
|
||||||
elementId,
|
);
|
||||||
);
|
}
|
||||||
promises.push(promise);
|
window.location.reload();
|
||||||
});
|
})();
|
||||||
Promise.all(promises).then(reload);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue