status-desktop/ui/imports/shared/popups/keycard
Sale Djenic a2f48eef49 refactor(@desktop/keycard): buttons' responibility in the keycard popup improved
A new rule introduced which should provide easier tracking/maintainig
later. The rule says:
- popup contains up to 3 action buttons and one back button (optional)
- if 3 buttons are displayed in the popup then the most left button, but
not back button, always triggers tertiary action, middle button always
triggers secondary action and the most right button always triggers primary
action
- if 2 buttons are displayed, then:
  - if one of them is "Cancel" (left button) it should trigger tertiary action
and the other one (right button) should trigger primary action
  - if non of them is "Cancel" then the left button triggers secondary action
and the right button triggers primary action
- if single button is displayed, then:
  - if it's "Cancel" it triggers tertiary action
  - if it is not "Cancel" it triggers primary action
- tertiary action always reffers to the cancel action until otherwise set
- tertiary action will be always triggered by closing popup via keybord
(esc key) or clicking on top right `x` button on the popup
2022-09-15 11:01:32 +02:00
..
helpers feat(@desktop/keycard): authenticate flow added 2022-09-14 16:05:52 +02:00
states refactor(@desktop/keycard): buttons' responibility in the keycard popup improved 2022-09-15 11:01:32 +02:00
KeycardPopup.qml refactor(@desktop/keycard): buttons' responibility in the keycard popup improved 2022-09-15 11:01:32 +02:00
qmldir fix(@desktop/keycard): implement new keycard factory reset flow 2022-08-11 13:57:37 +02:00