1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +02:00

feat(notifications): do not display invalid JWT token notifications (#1209)

This commit is contained in:
Anthony Lapenna 2017-09-19 20:59:28 +02:00 committed by GitHub
parent 912ebf4672
commit 5131c4c10b

View file

@ -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;