summaryrefslogtreecommitdiffstats
path: root/ui/src/services
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-04-03 16:01:20 -0700
committerDessalines <happydooby@gmail.com>2019-04-03 16:01:20 -0700
commit7b1fb030b306306ed65999bff05a5d0924a37158 (patch)
treea127d44c9a2d8d94312a4017a6904e69b6ed3125 /ui/src/services
parent81da0853aa460da0e277edfccfde9fcdf9334f31 (diff)
Adding a sidebar, title, and forum categories
- Adding a Sidebar component - Starting on forum categories. #17 - Adding a Sidebar and title to community. Fixes #16
Diffstat (limited to 'ui/src/services')
-rw-r--r--ui/src/services/WebSocketService.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/services/WebSocketService.ts b/ui/src/services/WebSocketService.ts
index c1fdb73b..c99cfcfa 100644
--- a/ui/src/services/WebSocketService.ts
+++ b/ui/src/services/WebSocketService.ts
@@ -41,6 +41,10 @@ export class WebSocketService {
this.subject.next(this.wsSendWrapper(UserOperation.ListCommunities, undefined));
}
+ public listCategories() {
+ this.subject.next(this.wsSendWrapper(UserOperation.ListCategories, undefined));
+ }
+
public createPost(postForm: PostForm) {
this.setAuth(postForm);
this.subject.next(this.wsSendWrapper(UserOperation.CreatePost, postForm));