File tree 1 file changed +6
-2
lines changed
jccm/src/Frontend/Components
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -246,8 +246,8 @@ export const Login = ({ isOpen, onClose }) => {
246
246
console . log ( 'Two Factor Auth required!' ) ;
247
247
return { status : 'two_factor' } ;
248
248
} 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');
251
251
252
252
return {
253
253
status : 'success' ,
@@ -294,6 +294,10 @@ export const Login = ({ isOpen, onClose }) => {
294
294
Constants . getActiveThemeName ( data ?. user ?. theme )
295
295
) ;
296
296
297
+ setTimeout ( async ( ) => {
298
+ await eventBus . emit ( 'cloud-inventory-refresh' ) ;
299
+ } , 1000 ) ;
300
+
297
301
onClose ( ) ;
298
302
} else if ( response . status === 'two_factor' ) {
299
303
console . log ( 'Two Factor Auth required!' ) ;
You can’t perform that action at this time.
0 commit comments