Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add modal interface and migrate existing modals #460

Merged
merged 15 commits into from Jun 10, 2021

Conversation

beansgum
Copy link
Contributor

@beansgum beansgum commented Jun 5, 2021

This pr adds a Modal interface, an interface for creating and managing custom modals made to replace the current modal manager which uses a global instance for all modals. A showModal & dismissModal function is also added to MainPage and made available to all pages via pageCommonl. The showModal function allows displaying multiple modals at once which are stacked on each other and ordered with the latest modal on top and dismissModal helps with dismissing a specific modal.

dreacot
dreacot previously approved these changes Jun 6, 2021
ui/create_watch_only_modal.go Outdated Show resolved Hide resolved
ui/modal.go Show resolved Hide resolved
ui/text_input_modal.go Show resolved Hide resolved
@oshorefueled oshorefueled merged commit 2fd255a into planetdecred:master Jun 10, 2021
@oshorefueled oshorefueled mentioned this pull request Jun 10, 2021
@beansgum beansgum deleted the modals branch June 11, 2021 03:52
song50119 pushed a commit to song50119/godcr that referenced this pull request Apr 24, 2022
* Add modal interface

* Add info modal and backwards compatibility for modal templates

* Add create password modal
- use create password modal to handle create wallet, create startup passphrase
 & change pass
- modify password dialog to accommodate other templates

* Add text input dialog to handle simple text inputs

* Implement add account modal using text input and info modals

- add mutex to access modal list

* Move modals to mainPage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants