Skip to content

Commit

Permalink
sorted actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimet-livefront committed Feb 11, 2025
1 parent 554eeb9 commit e25eb31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ enum UpdateMasterPasswordAction: Equatable {
/// The value for the current master password was changed.
case currentMasterPasswordChanged(String)

/// The user tapped on prevent account lock.
case preventAccountLockTapped

/// The value for the new master password was changed.
case masterPasswordChanged(String)

Expand All @@ -17,6 +14,9 @@ enum UpdateMasterPasswordAction: Equatable {
/// The value for the new master password retype was changed.
case masterPasswordRetypeChanged(String)

/// The user tapped on prevent account lock.
case preventAccountLockTapped

/// The reveal current master password field button was pressed.
case revealCurrentMasterPasswordFieldPressed(Bool)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ class UpdateMasterPasswordProcessor: StateProcessor<
switch action {
case let .currentMasterPasswordChanged(newValue):
state.currentMasterPassword = newValue
case .preventAccountLockTapped:
coordinator.navigate(to: .preventAccountLock)
case let .masterPasswordChanged(newValue):
state.masterPassword = newValue
updatePasswordStrength()
case let .masterPasswordHintChanged(newValue):
state.masterPasswordHint = newValue
case let .masterPasswordRetypeChanged(newValue):
state.masterPasswordRetype = newValue
case .preventAccountLockTapped:
coordinator.navigate(to: .preventAccountLock)
case let .revealCurrentMasterPasswordFieldPressed(isOn):
state.isCurrentMasterPasswordRevealed = isOn
case let .revealMasterPasswordFieldPressed(isOn):
Expand Down

0 comments on commit e25eb31

Please sign in to comment.