web: add notification 'mark as seen' button

This commit is contained in:
Jens Langhammer
2021-01-16 19:09:03 +01:00
parent 36e8b1004c
commit 8acb9dde5f
5 changed files with 23 additions and 10 deletions

View File

@ -15,11 +15,6 @@ export class ActionButton extends SpinnerButton {
}
this.setLoading();
const csrftoken = getCookie("authentik_csrf");
if (!csrftoken) {
console.debug("No csrf token in cookie");
this.setDone(ERROR_CLASS);
return;
}
const request = new Request(this.url, {
headers: { "X-CSRFToken": csrftoken },
});