File tree 1 file changed +6
-2
lines changed
components/dashboard/src/projects 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ export default function () {
111
111
setShowAuthBanner ( { host : new URL ( project . cloneUrl ) . hostname } ) ;
112
112
} else {
113
113
console . error ( 'Getting project configuration failed' , error ) ;
114
+ setIsDetecting ( false ) ;
115
+ setIsEditorDisabled ( true ) ;
116
+ setEditorMessage ( < EditorMessage type = "warning" heading = "Project type could not be detected." message = "Fetching project information failed." /> ) ;
117
+ setGitpodYml ( TASKS . Other ) ;
114
118
}
115
119
}
116
120
} ) ( ) ;
@@ -160,7 +164,7 @@ export default function () {
160
164
161
165
const onConfirmShowAuthModal = async ( host : string , scope ?: string ) => {
162
166
setShowAuthBanner ( undefined ) ;
163
- await tryAuthorize ( { host, onSuccess : async ( ) => {
167
+ await tryAuthorize ( { host, scope , onSuccess : async ( ) => {
164
168
// update remote session
165
169
await getGitpodService ( ) . reconnect ( ) ;
166
170
@@ -259,7 +263,7 @@ export default function () {
259
263
No Access
260
264
</ div >
261
265
< div className = "text-center dark:text-gray-400 pb-3" >
262
- Authorize { showAuthBanner . host } < br /> { showAuthBanner . scope ? ( < > and grant < strong > { showAuthBanner . scope } </ strong > permission</ > ) : "" } to access project configuration.
266
+ Authorize { showAuthBanner . host } { showAuthBanner . scope ? ( < > and grant < strong > { showAuthBanner . scope } </ strong > permission</ > ) : "" } < br /> to access project configuration.
263
267
</ div >
264
268
< button className = { `primary mr-2 py-2` } onClick = { ( ) => onConfirmShowAuthModal ( showAuthBanner . host , showAuthBanner . scope ) } > Authorize Provider</ button >
265
269
</ div >
You can’t perform that action at this time.
0 commit comments