File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ class Post extends Class
140
140
@menu .items .push [" Follow in newsfeed" , ( => if followed then @ unfollow () else @ follow () ), followed]
141
141
@menu .items .push [" Mute user" , @user .handleMuteClick ]
142
142
@menu .items .push [" Permalink" , @ getLink ()]
143
+ if @owned
144
+ @menu .items .push [" Edit" , ( (e ) => @editable_body .handleEditClick (e) )]
143
145
@menu .toggle ()
144
146
return false
145
147
Original file line number Diff line number Diff line change @@ -4644,6 +4644,13 @@ function clone(obj) {
4644
4644
] ) ;
4645
4645
_this . menu . items . push ( [ "Mute user" , _this . user . handleMuteClick ] ) ;
4646
4646
_this . menu . items . push ( [ "Permalink" , _this . getLink ( ) ] ) ;
4647
+ if ( _this . owned ) {
4648
+ _this . menu . items . push ( [
4649
+ "Edit" , ( function ( e ) {
4650
+ return _this . editable_body . handleEditClick ( e ) ;
4651
+ } )
4652
+ ] ) ;
4653
+ }
4647
4654
return _this . menu . toggle ( ) ;
4648
4655
} ;
4649
4656
} ) ( this ) ) ;
@@ -4818,6 +4825,7 @@ function clone(obj) {
4818
4825
4819
4826
} ) . call ( this ) ;
4820
4827
4828
+
4821
4829
/* ---- PostCreate.coffee ---- */
4822
4830
4823
4831
@@ -6107,7 +6115,6 @@ function clone(obj) {
6107
6115
6108
6116
} ) . call ( this ) ;
6109
6117
6110
-
6111
6118
/* ---- ZeroMe.coffee ---- */
6112
6119
6113
6120
You can’t perform that action at this time.
0 commit comments