File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ Screen.propTypes = {
79
79
children : PropTypes . node . isRequired
80
80
} ;
81
81
82
+ const isUserOwner = ( { project, user } ) => ( project . owner && project . owner . id === user . id ) ;
83
+
82
84
const IDEViewMobile = ( props ) => {
83
85
// const
84
86
const {
@@ -130,7 +132,7 @@ const IDEViewMobile = (props) => {
130
132
isExpanded = { ide . sidebarIsExpanded }
131
133
expandSidebar = { expandSidebar }
132
134
collapseSidebar = { collapseSidebar }
133
- isUserOwner = { setTmController }
135
+ isUserOwner = { isUserOwner ( props ) }
134
136
clearConsole = { clearConsole }
135
137
consoleEvents = { console }
136
138
showRuntimeErrorWarning = { showRuntimeErrorWarning }
@@ -247,6 +249,11 @@ IDEViewMobile.propTypes = {
247
249
248
250
hideRuntimeErrorWarning : PropTypes . func . isRequired ,
249
251
252
+ user : PropTypes . shape ( {
253
+ authenticated : PropTypes . bool . isRequired ,
254
+ id : PropTypes . string ,
255
+ username : PropTypes . string
256
+ } ) . isRequired ,
250
257
} ;
251
258
252
259
You can’t perform that action at this time.
0 commit comments