forked from dhis2/dhis2-android-capture-app
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ANDROAPP-5039] Review: Implement screen (#42)
* SettingsUiState.kt * create ButtonUiState.kt * use reviewButtonUiState on ManageStockViewModel.kt * Remove toolbar title property * Remove local properties on BackdropComponent.kt * ktlintCheck * collect by viewmodels * ktlintCheck * Add transaction date to SettingsUiState.kt * collect settingsUiState in MainContent.kt * ktlintCheck * Mobe fromLabel and deliver label to SettingsUiState.kt * Move fromLabel and deliver label to SettingsUiState.kt * Remove hardcoded programUid * remove items from cache when cleared * remove activity_manage_stock.xml * [ANDROAPP-5039] Filter list with entries when on Review click * populate table * [ANDROAPP-5039] Create DataEntryUiState.kt * [ANDROAPP-5039] Hide button on completed step * [ANDROAPP-5039] Hide button on completed step Co-authored-by: andresmr <[email protected]>
- Loading branch information
Showing
7 changed files
with
202 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
stock-managment/src/main/java/org/dhis2/android/rtsm/ui/home/model/DataEntryUiState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.dhis2.android.rtsm.ui.home.model | ||
|
||
data class DataEntryUiState( | ||
val step: DataEntryStep = DataEntryStep.EDITING, | ||
val button: ButtonUiState = ButtonUiState() | ||
) | ||
|
||
enum class DataEntryStep { | ||
LISTING, | ||
EDITING, | ||
REVIEWING, | ||
COMPLETED | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.