diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-15 20:08:37 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-15 20:08:37 -0600 |
commit | 2980a4496edf94259e1244e18c000f477aa3db43 (patch) | |
tree | 2bfcaff8312058e4c16cc238ded881f59727983e /shared | |
parent | 1f3a6112793c6097fa0863887b5b8b9e984b87a0 (diff) | |
download | etbsa-trackermap-mobile-2980a4496edf94259e1244e18c000f477aa3db43.tar.gz etbsa-trackermap-mobile-2980a4496edf94259e1244e18c000f477aa3db43.tar.bz2 etbsa-trackermap-mobile-2980a4496edf94259e1244e18c000f477aa3db43.zip |
Improved loading indicators, improved layout semantics, added translations and changed default view to MAP
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt index 3c213d5..237f1a3 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt @@ -18,6 +18,7 @@ class SessionController( private val usersApi: UsersApi ) { sealed class LoginState { + object Nothing: LoginState() object Loading: LoginState() object EmailMissing : LoginState() object PasswordMissing : LoginState() @@ -51,6 +52,7 @@ class SessionController( loginStateFlow.value = LoginState.Success } catch (e: Exception) { Log.d("LoginViewModel", "No session") + loginStateFlow.value = LoginState.Nothing } } } |