X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flogging%2Fsrc%2FloggingSource.js;fp=skyquake%2Fplugins%2Flogging%2Fsrc%2FloggingSource.js;h=2810ac8cb9cefdeb8520830fe1c00763c05d227b;hb=ae1f791347fb154f43aea97cd7fb607dfba57d7e;hp=bf2f06a005f7760896543dc141f58eaabc71589c;hpb=0d4bb6cbd64e97491372d528692fd84a107d7d3e;p=osm%2FUI.git diff --git a/skyquake/plugins/logging/src/loggingSource.js b/skyquake/plugins/logging/src/loggingSource.js index bf2f06a00..2810ac8cb 100644 --- a/skyquake/plugins/logging/src/loggingSource.js +++ b/skyquake/plugins/logging/src/loggingSource.js @@ -84,23 +84,23 @@ export default { } })) } - // if(nulledCategories.length > 0) { - // remove = $.ajax({ - // // url: apiUrl('api/config/default-severity'), - // url: apiUrl('api/config/default-syslog-severity/' + nulledCategories.join(',')), - // type: 'DELETE', - // beforeSend: Utils.addAuthorizationStub, - // success: function(data) { - // resolve(data); - // }, - // error: function(error) { - // console.log("There was an error updating the logging config data", - // error); - // reject(error); - // } - // }); - // promises.push(remove); - // } + if(nulledCategories.length > 0) { + remove = $.ajax({ + // url: apiUrl('api/config/default-severity'), + url: apiUrl('api/config/default-syslog-severity/' + nulledCategories.join(',')), + type: 'DELETE', + beforeSend: Utils.addAuthorizationStub, + success: function(data) { + resolve(data); + }, + error: function(error) { + console.log("There was an error updating the logging config data", + error); + reject(error); + } + }); + promises.push(remove); + } Promise.all(promises).then(function(data) { return $.ajax({ url: apiUrl('api/aggregate'),