mirror of
https://github.com/twofas/2fas-ios.git
synced 2024-11-22 02:10:19 +01:00
TF-250 Fixes
This commit is contained in:
parent
6c7e864fa8
commit
2f984c042d
@ -38,7 +38,7 @@ extension CategoryData {
|
||||
if let section {
|
||||
return section.title
|
||||
}
|
||||
return T.Commons.service
|
||||
return T.Tokens.myTokens
|
||||
}()
|
||||
return Category(id: id, name: name, services: services.toServices())
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ struct IntroductionView: View {
|
||||
}, label: {
|
||||
Text(T.Commons.continue)
|
||||
})
|
||||
.padding(.vertical, 12)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -104,13 +104,13 @@ struct SecurityView: View {
|
||||
PINKeyboardView(presenter: .init(interactor: InteractorFactory.shared.pinInteractor(variant: .PINValidationWithClose), completion: { result in
|
||||
switch result {
|
||||
case .closed: path.removeLast()
|
||||
case .verified: path.append(SecurityPath.setPIN(.selectLength))
|
||||
case .verified: path.append(SecurityPath.changePIN(.selectLength))
|
||||
default: break
|
||||
}
|
||||
}))
|
||||
case .selectLength:
|
||||
PINTypeView(didSelect: { PINType in
|
||||
path.append(SecurityPath.setPIN(.enterPIN(PINType)))
|
||||
path.append(SecurityPath.changePIN(.enterPIN(PINType)))
|
||||
}, showClose: true) {
|
||||
path.removeLast(2)
|
||||
}
|
||||
@ -118,7 +118,7 @@ struct SecurityView: View {
|
||||
PINKeyboardView(presenter: .init(interactor: InteractorFactory.shared.pinInteractor(variant: .enterNewPIN(PINType)), completion: { result in
|
||||
switch result {
|
||||
case .closed: path.removeLast(3)
|
||||
case .entered(let appPIN): path.append(SecurityPath.setPIN(.verifyPIN(appPIN)))
|
||||
case .entered(let appPIN): path.append(SecurityPath.changePIN(.verifyPIN(appPIN)))
|
||||
default: break
|
||||
}
|
||||
}))
|
||||
@ -126,7 +126,7 @@ struct SecurityView: View {
|
||||
PINKeyboardView(presenter: .init(interactor: InteractorFactory.shared.pinInteractor(variant: .verifyPIN(appPIN)), completion: { result in
|
||||
switch result {
|
||||
case .closed: path.removeLast(4)
|
||||
case .saved: path.append(SecurityPath.setPIN(.success))
|
||||
case .saved: path.append(SecurityPath.changePIN(.success))
|
||||
default: break
|
||||
}
|
||||
}))
|
||||
|
@ -34,6 +34,7 @@ struct SuccessView: View {
|
||||
}
|
||||
.controlSize(.large)
|
||||
}
|
||||
.navigationBarBackButtonHidden()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user