From 6aa78c8ddbcdeaace0f4596e7c717dafef036f03 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sat, 15 Jan 2022 20:08:37 -0600 Subject: Improved loading indicators, improved layout semantics, added translations and changed default view to MAP --- .../kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shared/src/commonMain/kotlin/mx/trackermap') 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 } } } -- cgit v1.2.3