mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
feat: add back error handling for a number of api calls
This commit is contained in:
@@ -198,7 +198,7 @@ define('admin/manage/categories', [
|
||||
const categoryEl = listEl.querySelector(`li[data-cid="${cid}"]`);
|
||||
categoryEl.classList[disabled ? 'add' : 'remove']('disabled');
|
||||
$(categoryEl).find('li a[data-action="toggle"]').first().translateText(disabled ? '[[admin/manage/categories:enable]]' : '[[admin/manage/categories:disable]]');
|
||||
})));
|
||||
}).catch(app.alertError)));
|
||||
};
|
||||
|
||||
function itemDidAdd(e) {
|
||||
|
||||
Reference in New Issue
Block a user