File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,9 @@ export const createConnectionThunk =
87
87
'ERR - connect to DB' ,
88
88
database ,
89
89
'' ,
90
- `Error while trying to establish connection to Neo4j DB in ${
91
- neodashMode
92
- } mode at ${
93
- Date ( Date . now ( ) ) . substring ( 0 , 33 ) } `
90
+ `Error while trying to establish connection to Neo4j DB in ${ neodashMode } mode at ${ Date (
91
+ Date . now ( )
92
+ ) . substring ( 0 , 33 ) } `
94
93
)
95
94
) ;
96
95
}
@@ -113,11 +112,10 @@ export const createConnectionThunk =
113
112
'INF - connect to DB' ,
114
113
database ,
115
114
'' ,
116
- `${ username
117
- } established connection to Neo4j DB in ${
118
- neodashMode
119
- } mode at ${
120
- Date ( Date . now ( ) ) . substring ( 0 , 33 ) } `
115
+ `${ username } established connection to Neo4j DB in ${ neodashMode } mode at ${ Date ( Date . now ( ) ) . substring (
116
+ 0 ,
117
+ 33
118
+ ) } `
121
119
)
122
120
) ;
123
121
}
@@ -261,12 +259,12 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
261
259
const skipConfirmation = urlParams . get ( 'skipConfirmation' ) == 'Yes' ;
262
260
263
261
const dashboardDatabase = urlParams . get ( 'dashboardDatabase' ) ;
262
+ dispatch ( setStandaloneDashboardDatabase ( dashboardDatabase ) ) ;
264
263
if ( urlParams . get ( 'credentials' ) ) {
265
264
const connection = decodeURIComponent ( urlParams . get ( 'credentials' ) ) ;
266
265
const protocol = connection . split ( '://' ) [ 0 ] ;
267
266
const username = connection . split ( '://' ) [ 1 ] . split ( ':' ) [ 0 ] ;
268
267
const password = connection . split ( '://' ) [ 1 ] . split ( ':' ) [ 1 ] . split ( '@' ) [ 0 ] ;
269
-
270
268
const database = connection . split ( '@' ) [ 1 ] . split ( ':' ) [ 0 ] ;
271
269
const url = connection . split ( '@' ) [ 1 ] . split ( ':' ) [ 1 ] ;
272
270
const port = connection . split ( '@' ) [ 1 ] . split ( ':' ) [ 2 ] ;
You can’t perform that action at this time.
0 commit comments