summaryrefslogtreecommitdiffstats
path: root/ui/src/services
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-29 09:51:13 -0700
committerDessalines <tyhou13@gmx.com>2019-04-29 09:51:13 -0700
commit85ed895c5f56e2468b1c4973faa99a64da36a6ad (patch)
treef6fe455bbf01d122f4379e400824a63da6f0581c /ui/src/services
parentfe89bc2a42b12d4f483bb3d720c8447de4d97f65 (diff)
Adding mark all as read
- Fixes #107
Diffstat (limited to 'ui/src/services')
-rw-r--r--ui/src/services/WebSocketService.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/src/services/WebSocketService.ts b/ui/src/services/WebSocketService.ts
index 2389ab84..06e604e9 100644
--- a/ui/src/services/WebSocketService.ts
+++ b/ui/src/services/WebSocketService.ts
@@ -177,6 +177,12 @@ export class WebSocketService {
this.subject.next(this.wsSendWrapper(UserOperation.Search, form));
}
+ public markAllAsRead() {
+ let form = {};
+ this.setAuth(form);
+ this.subject.next(this.wsSendWrapper(UserOperation.MarkAllAsRead, form));
+ }
+
private wsSendWrapper(op: UserOperation, data: any) {
let send = { op: UserOperation[op], data: data };
console.log(send);