File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -113,19 +113,22 @@ class Sidebar extends React.Component {
113113 Create file
114114 </ button >
115115 </ li >
116- < li >
117- < button
118- aria-label = "upload file"
119- onClick = { ( ) => {
120- this . props . openUploadFileModal ( rootFile . id ) ;
121- setTimeout ( this . props . closeProjectOptions , 0 ) ;
122- } }
123- onBlur = { this . onBlurComponent }
124- onFocus = { this . onFocusComponent }
125- >
126- Upload file
127- </ button >
128- </ li >
116+ {
117+ this . props . user . authenticated &&
118+ < li >
119+ < button
120+ aria-label = "upload file"
121+ onClick = { ( ) => {
122+ this . props . openUploadFileModal ( rootFile . id ) ;
123+ setTimeout ( this . props . closeProjectOptions , 0 ) ;
124+ } }
125+ onBlur = { this . onBlurComponent }
126+ onFocus = { this . onFocusComponent }
127+ >
128+ Upload file
129+ </ button >
130+ </ li >
131+ }
129132 </ ul >
130133 </ div >
131134 </ div >
You can’t perform that action at this time.
0 commit comments