From 5131c4c10b227dc664ee121f23769f6b8a76270e Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Tue, 19 Sep 2017 20:59:28 +0200 Subject: [PATCH] feat(notifications): do not display invalid JWT token notifications (#1209) --- app/services/notifications.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/services/notifications.js b/app/services/notifications.js index ddc9d0d7a..3679cba18 100644 --- a/app/services/notifications.js +++ b/app/services/notifications.js @@ -24,7 +24,9 @@ angular.module('portainer.services') } else if (e.data && e.data.err) { msg = e.data.err; } - toastr.error($sanitize(msg), $sanitize(title), {timeOut: 6000}); + if (msg !== 'Invalid JWT token') { + toastr.error($sanitize(msg), $sanitize(title), {timeOut: 6000}); + } }; return service;