mirror of
https://github.com/bitwarden/android.git
synced 2025-12-10 09:56:45 -06:00
Update TODOs for VaultTakeoverViewModel
Add placeholder TODO comments to the `VaultTakeoverViewModel` for future implementation work. This commit clarifies upcoming tasks by: - Adding a reference to a ticket (PM-28468) for fetching the organization name. - Noting that the help link URL needs to be updated once it becomes available. - Performing minor code formatting for better readability.
This commit is contained in:
parent
341a693555
commit
2908fc2527
@ -8,13 +8,14 @@ import javax.inject.Inject
|
||||
* View model for the [VaultTakeoverScreen].
|
||||
*/
|
||||
@HiltViewModel
|
||||
class VaultTakeoverViewModel @Inject constructor(
|
||||
// TODO: Inject required repositories/managers
|
||||
) : BaseViewModel<VaultTakeoverState, VaultTakeoverEvent, VaultTakeoverAction>(
|
||||
initialState = VaultTakeoverState(
|
||||
organizationName = "TODO", // TODO: Get from navigation args or repository
|
||||
),
|
||||
) {
|
||||
class VaultTakeoverViewModel @Inject constructor() :
|
||||
BaseViewModel<VaultTakeoverState, VaultTakeoverEvent, VaultTakeoverAction>(
|
||||
initialState = VaultTakeoverState(
|
||||
// TODO: Get from navigation args or repository (PM-28468)
|
||||
organizationName = "TODO",
|
||||
),
|
||||
) {
|
||||
|
||||
override fun handleAction(action: VaultTakeoverAction) {
|
||||
when (action) {
|
||||
VaultTakeoverAction.ContinueClicked -> handleContinueClicked()
|
||||
@ -32,6 +33,7 @@ class VaultTakeoverViewModel @Inject constructor(
|
||||
}
|
||||
|
||||
private fun handleHelpLinkClicked() {
|
||||
// TODO: Update URL when available.
|
||||
sendEvent(VaultTakeoverEvent.LaunchUri("TODO_HELP_URL"))
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user