File tree 1 file changed +8
-2
lines changed
apps/web-mzima-client/src/app/post/post-head
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 {
72
72
underReview ( ) {
73
73
this . postsService . updateStatus ( this . post . id , PostStatus . Draft ) . subscribe ( ( res ) => {
74
74
this . post = res . result ;
75
- this . statusChanged . emit ( ) ;
75
+ this . eventBusService . next ( {
76
+ type : EventType . StatusChange ,
77
+ payload : this . post ,
78
+ } ) ;
76
79
} ) ;
77
80
}
78
81
@@ -103,7 +106,10 @@ export class PostHeadComponent extends BaseComponent implements OnInit {
103
106
archive ( ) {
104
107
this . postsService . updateStatus ( this . post . id , PostStatus . Archived ) . subscribe ( ( res ) => {
105
108
this . post = res . result ;
106
- this . statusChanged . emit ( ) ;
109
+ this . eventBusService . next ( {
110
+ type : EventType . StatusChange ,
111
+ payload : this . post ,
112
+ } ) ;
107
113
} ) ;
108
114
}
109
115
You can’t perform that action at this time.
0 commit comments