Skip to content

Commit

Permalink
Fix the login message display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrho committed Oct 1, 2024
1 parent 7bcd556 commit 16c8575
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jccm/src/Frontend/Components/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ export const Login = ({ isOpen, onClose }) => {
console.log('Two Factor Auth required!');
return { status: 'two_factor' };
} else {
console.log('Login successful!');
await eventBus.emit('cloud-inventory-refresh');
// console.log('Login successful!');
// await eventBus.emit('cloud-inventory-refresh');

return {
status: 'success',
Expand Down Expand Up @@ -294,6 +294,10 @@ export const Login = ({ isOpen, onClose }) => {
Constants.getActiveThemeName(data?.user?.theme)
);

setTimeout(async () => {
await eventBus.emit('cloud-inventory-refresh');
}, 1000);

onClose();
} else if (response.status === 'two_factor') {
console.log('Two Factor Auth required!');
Expand Down

0 comments on commit 16c8575

Please sign in to comment.