mirror of https://github.com/portainer/portainer
feat(notifications): do not display invalid JWT token notifications (#1209)
parent
912ebf4672
commit
5131c4c10b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue