diff --git a/src/app/modules/comments/list.component.html b/src/app/modules/comments/list.component.html
index e6e299e1..2657f8eb 100644
--- a/src/app/modules/comments/list.component.html
+++ b/src/app/modules/comments/list.component.html
@@ -46,7 +46,7 @@
-
diff --git a/src/app/modules/comments/list.component.scss b/src/app/modules/comments/list.component.scss
index 92b5e596..1b2c04e0 100644
--- a/src/app/modules/comments/list.component.scss
+++ b/src/app/modules/comments/list.component.scss
@@ -48,6 +48,8 @@
}
.m-ionic-comments--actions{
+ display: flex;
+ align-items: center;
ion-icon{
font-size:24px;
}
diff --git a/src/app/modules/comments/list.component.ts b/src/app/modules/comments/list.component.ts
index 9537dfd2..98b1f380 100644
--- a/src/app/modules/comments/list.component.ts
+++ b/src/app/modules/comments/list.component.ts
@@ -83,7 +83,16 @@ export class CommentsList {
}
post(){
-
+ this.client.post('api/v1/comments/' + this.params.get('guid'), {
+ comment: this.message
+ })
+ .then((response : any) => {
+ this.message = "";
+ this.comments.push(response.comment);
+ this.cd.markForCheck();
+ this.cd.detectChanges();
+ this.scrollArea.scrollToBottom(300);
+ });
}