@@ -261,24 +261,40 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
261
261
const dashboardDatabase = urlParams . get ( 'dashboardDatabase' ) ;
262
262
dispatch ( setStandaloneDashboardDatabase ( dashboardDatabase ) ) ;
263
263
if ( urlParams . get ( 'credentials' ) ) {
264
+ setWelcomeScreenOpen ( false ) ;
264
265
const connection = decodeURIComponent ( urlParams . get ( 'credentials' ) ) ;
265
266
const protocol = connection . split ( '://' ) [ 0 ] ;
266
267
const username = connection . split ( '://' ) [ 1 ] . split ( ':' ) [ 0 ] ;
267
268
const password = connection . split ( '://' ) [ 1 ] . split ( ':' ) [ 1 ] . split ( '@' ) [ 0 ] ;
268
269
const database = connection . split ( '@' ) [ 1 ] . split ( ':' ) [ 0 ] ;
269
270
const url = connection . split ( '@' ) [ 1 ] . split ( ':' ) [ 1 ] ;
270
271
const port = connection . split ( '@' ) [ 1 ] . split ( ':' ) [ 2 ] ;
271
- if ( url == password ) {
272
- // Special case where a connect link is generated without a password.
273
- // Here, the format is parsed incorrectly and we open the connection window instead.
274
-
275
- dispatch ( resetShareDetails ( ) ) ;
276
- dispatch ( setConnectionProperties ( protocol , url , port , database , username . split ( '@' ) [ 0 ] , '' ) ) ;
277
- dispatch ( setWelcomeScreenOpen ( false ) ) ;
278
- dispatch ( setConnectionModalOpen ( true ) ) ;
279
- // window.history.pushState({}, document.title, "/");
280
- return ;
281
- }
272
+ // if (url == password) {
273
+ // // Special case where a connect link is generated without a password.
274
+ // // Here, the format is parsed incorrectly and we open the connection window instead.
275
+ // dispatch(setConnectionProperties(protocol, url, port, database, username.split('@')[0], ''));
276
+ // dispatch(
277
+ // setShareDetailsFromUrl(
278
+ // type,
279
+ // id,
280
+ // standalone,
281
+ // protocol,
282
+ // url,
283
+ // port,
284
+ // database,
285
+ // username.split('@')[0],
286
+ // '',
287
+ // dashboardDatabase,
288
+ // true
289
+ // )
290
+ // );
291
+ // setDashboardToLoadAfterConnecting(id);
292
+ // window.history.pushState({}, document.title, window.location.pathname);
293
+ // dispatch(setConnectionModalOpen(true));
294
+ // dispatch(setWelcomeScreenOpen(false));
295
+ // // window.history.pushState({}, document.title, "/");
296
+ // return;
297
+ // }
282
298
283
299
dispatch ( setConnectionModalOpen ( false ) ) ;
284
300
dispatch (
0 commit comments