mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-17 14:00:29 +01:00
fix: +comment, -debug log
This commit is contained in:
@@ -102,6 +102,7 @@ define('forum/flags/list', ['components', 'Chart'], function (components, Chart)
|
|||||||
var flagIds = Flags.getSelected();
|
var flagIds = Flags.getSelected();
|
||||||
var promises = [];
|
var promises = [];
|
||||||
|
|
||||||
|
// TODO: this can be better done with flagIds.map to return promises
|
||||||
flagIds.forEach(function (flagId) {
|
flagIds.forEach(function (flagId) {
|
||||||
promises.push(new Promise(function (resolve, reject) {
|
promises.push(new Promise(function (resolve, reject) {
|
||||||
var handler = function (err) {
|
var handler = function (err) {
|
||||||
@@ -151,7 +152,6 @@ define('forum/flags/list', ['components', 'Chart'], function (components, Chart)
|
|||||||
app.alertSuccess('[[flags:bulk-success, ' + fulfilled + ']]');
|
app.alertSuccess('[[flags:bulk-success, ' + fulfilled + ']]');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(errors);
|
|
||||||
errors.forEach(function (res) {
|
errors.forEach(function (res) {
|
||||||
app.alertError(res.reason);
|
app.alertError(res.reason);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user