Skip to content

Commit 16c8575

Browse files
committed
Fix the login message display issue
1 parent 7bcd556 commit 16c8575

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

jccm/src/Frontend/Components/Login.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ export const Login = ({ isOpen, onClose }) => {
246246
console.log('Two Factor Auth required!');
247247
return { status: 'two_factor' };
248248
} else {
249-
console.log('Login successful!');
250-
await eventBus.emit('cloud-inventory-refresh');
249+
// console.log('Login successful!');
250+
// await eventBus.emit('cloud-inventory-refresh');
251251

252252
return {
253253
status: 'success',
@@ -294,6 +294,10 @@ export const Login = ({ isOpen, onClose }) => {
294294
Constants.getActiveThemeName(data?.user?.theme)
295295
);
296296

297+
setTimeout(async () => {
298+
await eventBus.emit('cloud-inventory-refresh');
299+
}, 1000);
300+
297301
onClose();
298302
} else if (response.status === 'two_factor') {
299303
console.log('Two Factor Auth required!');

0 commit comments

Comments
 (0)