mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 01:54:26 +00:00
This commit is contained in:
parent
ea0fe83888
commit
6cd1ccef3d
@ -408,18 +408,17 @@ function initCommentForm() {
|
||||
$(`.${selector}`).dropdown('setting', 'onHide', () => {
|
||||
hasUpdateAction = $listMenu.data('action') === 'update'; // Update the var
|
||||
if (hasUpdateAction) {
|
||||
const promises = [];
|
||||
Object.keys(items).forEach((elementId) => {
|
||||
const item = items[elementId];
|
||||
const promise = updateIssuesMeta(
|
||||
(async function() {
|
||||
for (const [elementId, item] of Object.entries(items)) {
|
||||
await updateIssuesMeta(
|
||||
item['update-url'],
|
||||
item.action,
|
||||
item['issue-id'],
|
||||
elementId,
|
||||
);
|
||||
promises.push(promise);
|
||||
});
|
||||
Promise.all(promises).then(reload);
|
||||
}
|
||||
window.location.reload();
|
||||
})();
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user