File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,10 @@ class IDEView extends React.Component {
157157 e . stopPropagation ( ) ;
158158 if ( this . isUserOwner ( ) || ( this . props . user . authenticated && ! this . props . project . owner ) ) {
159159 this . props . saveProject ( ) ;
160+ } else if ( this . props . user . authenticated ) {
161+ this . props . cloneProject ( ) ;
162+ } else {
163+ this . props . showErrorModal ( 'forceAuthentication' ) ;
160164 }
161165 // 13 === enter
162166 } else if ( e . keyCode === 13 && e . shiftKey && ( ( e . metaKey && this . isMac ) || ( e . ctrlKey && ! this . isMac ) ) ) {
@@ -486,10 +490,10 @@ class IDEView extends React.Component {
486490 < Overlay
487491 title = "Error"
488492 ariaLabel = "error"
489- closeOverlay = { this . props . hideErrorModal }
490493 >
491494 < ErrorModal
492495 type = { this . props . ide . errorType }
496+ closeModal = { this . props . hideErrorModal }
493497 />
494498 </ Overlay >
495499 }
You can’t perform that action at this time.
0 commit comments