File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
apps/web-mzima-client/src/app/post/post-head Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ export class PostHeadComponent extends BaseComponent implements OnInit {
7272 underReview ( ) {
7373 this . postsService . updateStatus ( this . post . id , PostStatus . Draft ) . subscribe ( ( res ) => {
7474 this . post = res . result ;
75- this . statusChanged . emit ( ) ;
75+ this . eventBusService . next ( {
76+ type : EventType . StatusChange ,
77+ payload : this . post ,
78+ } ) ;
7679 } ) ;
7780 }
7881
@@ -103,7 +106,10 @@ export class PostHeadComponent extends BaseComponent implements OnInit {
103106 archive ( ) {
104107 this . postsService . updateStatus ( this . post . id , PostStatus . Archived ) . subscribe ( ( res ) => {
105108 this . post = res . result ;
106- this . statusChanged . emit ( ) ;
109+ this . eventBusService . next ( {
110+ type : EventType . StatusChange ,
111+ payload : this . post ,
112+ } ) ;
107113 } ) ;
108114 }
109115
You can’t perform that action at this time.
0 commit comments