Skip to content
Extraits de code Groupes Projets
Valider 131b4016 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Allow piwikApi users to specify if they want an error notification to be created on error or not.

parent 6150aaca
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -44,7 +44,9 @@
}
function createResponseErrorNotification(response, options) {
if (response.message) {
if (response.message
&& options.createErrorNotification
) {
var UI = require('piwik/UI');
var notification = new UI.Notification();
notification.show(response.message, {
......@@ -66,6 +68,10 @@
options = {};
}
if (options.createErrorNotification === undefined) {
options.createErrorNotification = true;
}
var deferred = $q.defer(),
requestPromise = deferred.promise;
......@@ -271,7 +277,7 @@
* @deprecated
*/
abort: abort,
abortAll: abortAll,
abortAll: abortAll
};
}
})();
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter