Commit 9998e0ad authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #375 from hypothesis/dont-show-duplicate-toastr-messages

Don't show duplicate toastr messages at once
parents a368bafa f2f5775f
...@@ -81,6 +81,13 @@ function configureRoutes($routeProvider) { ...@@ -81,6 +81,13 @@ function configureRoutes($routeProvider) {
}); });
} }
// @ngInject
function configureToastr(toastrConfig) {
angular.extend(toastrConfig, {
preventOpenDuplicates: true,
});
}
// @ngInject // @ngInject
function configureHttp($httpProvider) { function configureHttp($httpProvider) {
// Use the Pyramid XSRF header name // Use the Pyramid XSRF header name
...@@ -208,6 +215,7 @@ module.exports = angular.module('h', [ ...@@ -208,6 +215,7 @@ module.exports = angular.module('h', [
.config(configureHttp) .config(configureHttp)
.config(configureLocation) .config(configureLocation)
.config(configureRoutes) .config(configureRoutes)
.config(configureToastr)
.run(setupHttp); .run(setupHttp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment