mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-25 00:51:28 +02:00
[client] Trigger login from the expired tray session row
The expired-session tray click navigated the main window to /#/login, a route that does not exist and falls through to the main page without starting a login. Emit the trigger-login event instead, matching handleConnect's SessionExpired path.
This commit is contained in:
@@ -308,11 +308,7 @@ func (t *Tray) openSessionExtendFlow() {
|
||||
}
|
||||
seconds := int(time.Until(deadline).Seconds())
|
||||
if seconds <= 0 {
|
||||
if t.window != nil {
|
||||
t.window.SetURL("/#/login")
|
||||
t.window.Show()
|
||||
t.window.Focus()
|
||||
}
|
||||
t.app.Event.Emit(services.EventTriggerLogin)
|
||||
return
|
||||
}
|
||||
if t.svc.WindowManager == nil {
|
||||
|
||||
Reference in New Issue
Block a user