mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-26 23:30:39 -04:00
work
This commit is contained in:
parent
9fa1666e8b
commit
f754f7d5ed
27 changed files with 655 additions and 289 deletions
|
@ -37,9 +37,13 @@ class RouterNotifier extends _$RouterNotifier implements Listenable {
|
|||
return null;
|
||||
}
|
||||
|
||||
// No matter where we are, if there's not
|
||||
|
||||
switch (state.location) {
|
||||
case IndexPage.path:
|
||||
return hasAnyAccount ? HomePage.path : NewAccountPage.path;
|
||||
case NewAccountPage.path:
|
||||
return hasAnyAccount ? HomePage.path : null;
|
||||
default:
|
||||
return hasAnyAccount ? null : NewAccountPage.path;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue