Skip to content

Commit df0a42d

Browse files
authored
Merge pull request #551 from neo4j-labs/fix/standaloneCredentials
Fix/standalone credentials
2 parents e8d8963 + e0e3900 commit df0a42d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/dashboard/DashboardThunks.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,14 @@ export const loadDashboardFromNeo4jByNameThunk = (driver, database, name, callba
247247
'A dashboard with the provided name could not be found.'
248248
)
249249
);
250+
return;
250251
}
252+
253+
if (records[0].error) {
254+
dispatch(createNotificationThunk('Unable to load dashboard.', records[0].error));
255+
return;
256+
}
257+
251258
callback(records[0]._fields[0]);
252259
}
253260
);

src/modal/ConnectionModal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ export default function NeoConnectionModal({
140140
<TextInput
141141
id='dbusername'
142142
value={username}
143-
disabled={standalone}
144143
onChange={(e) => setUsername(e.target.value)}
145144
label='Username'
146145
placeholder='neo4j'
@@ -158,7 +157,6 @@ export default function NeoConnectionModal({
158157
<TextInput
159158
id='dbpassword'
160159
value={password}
161-
disabled={standalone}
162160
onChange={(e) => setPassword(e.target.value)}
163161
label='Password'
164162
placeholder='neo4j'

0 commit comments

Comments
 (0)