File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -499,9 +499,15 @@ <h2>Target</h2>
499499 setPodUrl : ( webId , pod ) => solidApi . getPodUrl ( new URL ( webId ) ) . then ( podUrl => solidApp . view . pods [ pod ] . url = podUrl ) ,
500500 } ,
501501 commands : {
502- connect : ( form , values ) => solidApi . connect ( values . issuer ) ,
502+ connect : ( form , values ) => solidApi . connect ( values . issuer )
503+ . catch ( error => solidApp . actions . log ( `Could not connect to ${ values . issuer } ` , 0 , 'error' ) )
504+ ,
503505 disconnect : ( ) => solidApi . disconnect ( ) . then ( ( ) => { window . location = window . location } ) ,
504506 readPod : ( form , values ) => {
507+ if ( ! values . url ) {
508+ return solidApp . actions . log ( `Please provide an URL as ${ values . pod } pod!` , 0 , 'error' )
509+ }
510+
505511 solidApp . view . pods [ values . pod ] . url = values . url
506512
507513 return solidApi . listPodContent ( values . url )
You can’t perform that action at this time.
0 commit comments