Skip to content

Commit 333f9e2

Browse files
committed
Handling shared dashboards in standalone mode
1 parent ac8eda1 commit 333f9e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/application/ApplicationThunks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => {
271271
if (url == password) {
272272
// Special case where a connect link is generated without a password.
273273
// Here, the format is parsed incorrectly and we open the connection window instead.
274-
275274
dispatch(resetShareDetails());
276275
dispatch(setConnectionProperties(protocol, url, port, database, username.split('@')[0], ''));
277276
dispatch(setWelcomeScreenOpen(false));
@@ -648,4 +647,5 @@ export const initializeApplicationAsStandaloneThunk =
648647
} else {
649648
dispatch(setConnectionModalOpen(true));
650649
}
650+
dispatch(handleSharedDashboardsThunk());
651651
};

src/dashboard/DashboardThunks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export const loadDashboardFromNeo4jByNameThunk =
404404
if (records.length == 0) {
405405
dispatch(
406406
createNotificationThunk(
407-
'Unable to load dashboard.',
407+
`Unable to load dashboard "${ name }".`,
408408
'A dashboard with the provided name could not be found.'
409409
)
410410
);
@@ -429,7 +429,7 @@ export const loadDashboardFromNeo4jByNameThunk =
429429
}
430430

431431
if (records[0].error) {
432-
dispatch(createNotificationThunk('Unable to load dashboard.', records[0].error));
432+
dispatch(createNotificationThunk(`Unable to load dashboard "${ name }".`, records[0].error));
433433
if (loggingSettings.loggingMode > '1') {
434434
dispatch(
435435
createLogThunk(

0 commit comments

Comments
 (0)