mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 03:48:09 +00:00
chore(core): Implement swipe back in confirm_fido flow menu
This commit is contained in:
parent
5e01288ba6
commit
99742e4862
1
core/.changelog.d/4176.fixed
Normal file
1
core/.changelog.d/4176.fixed
Normal file
@ -0,0 +1 @@
|
|||||||
|
[T3T1] Add swipe back in fido confirm flow menu.
|
@ -49,6 +49,13 @@ impl FlowController for ConfirmFido {
|
|||||||
fn handle_swipe(&'static self, direction: Direction) -> Decision {
|
fn handle_swipe(&'static self, direction: Direction) -> Decision {
|
||||||
match (self, direction) {
|
match (self, direction) {
|
||||||
(Self::Intro, Direction::Left) => Self::Menu.swipe(direction),
|
(Self::Intro, Direction::Left) => Self::Menu.swipe(direction),
|
||||||
|
(Self::Menu, Direction::Right) => {
|
||||||
|
if Self::single_cred() {
|
||||||
|
Self::Details.swipe_right()
|
||||||
|
} else {
|
||||||
|
Self::Intro.swipe_right()
|
||||||
|
}
|
||||||
|
}
|
||||||
(Self::Intro, Direction::Up) => Self::ChooseCredential.swipe(direction),
|
(Self::Intro, Direction::Up) => Self::ChooseCredential.swipe(direction),
|
||||||
(Self::ChooseCredential, Direction::Down) => Self::Intro.swipe(direction),
|
(Self::ChooseCredential, Direction::Down) => Self::Intro.swipe(direction),
|
||||||
(Self::Details, Direction::Up) => Self::Tap.swipe(direction),
|
(Self::Details, Direction::Up) => Self::Tap.swipe(direction),
|
||||||
|
Loading…
Reference in New Issue
Block a user