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

pull/1212/head
Anthony Lapenna 7 years ago committed by GitHub
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…
Cancel
Save