web/admin: migrate more components

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-16 17:51:58 +02:00
parent 9a44088d2b
commit 1f05484e3c
6 changed files with 9 additions and 9 deletions

View File

@ -32,7 +32,7 @@ export class NotificationDrawer extends LitElement {
firstUpdated(): void {
new EventsApi(DEFAULT_CONFIG).eventsNotificationsList({
seen: "false",
seen: false,
ordering: "-created",
}).then(r => {
this.notifications = r;
@ -73,7 +73,7 @@ export class NotificationDrawer extends LitElement {
<button class="pf-c-dropdown__toggle pf-m-plain" type="button" @click=${() => {
new EventsApi(DEFAULT_CONFIG).eventsNotificationsPartialUpdate({
uuid: item.pk || "",
data: {
patchedNotificationRequest: {
seen: true,
}
}).then(() => {