Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Refactor header dialogs (about, info, bug) to use Dialog class #131

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

thinkh
Copy link
Contributor

@thinkh thinkh commented Jan 4, 2021

Closes #130

Summary

  • Remove hard-coded modal dialog HTML code
  • Use Dialog class instead

Breaking changes might be:

  • Dialogs are now using a CSS class instead of the id attribute
    • #headerAboutDialog -> .header-about-dialog
    • #headerReportBugDialog -> .header-report-bug-dialog
    • #headerOptionsDialog -> .header-options-dialog
  • Make link toggle functions private (toggleOptionsLink, toggleReportBugLink, toggleHelpLink)
  • About dialog: content parameter of content generator function is now empty -> default HTML is only generated by defaultAboutInfo()

Closes #130

* Remove hard-coded modal dialog HTML code
* Use Dialog class instead

Breaking changes might be:
* dialog id to class
   * `#headerAboutDialog` -> `.header-about-dialog`
   * `#headerReportBugDialog` -> `.header-report-bug-dialog`
   * `#headerOptionsDialog` -> `.header-options-dialog`
* Make link toggle functions private (`toggleOptionsLink`, `toggleReportBugLink`, `toggleHelpLink`)
* About dialog: `content` parameter of content generator function is now empty -> default HTML is only generated by `defaultAboutInfo()`
@thinkh thinkh added the type: refactor Refactor the current implementation label Jan 4, 2021
@thinkh thinkh requested a review from a user January 4, 2021 16:54
@thinkh thinkh assigned ghost Jan 4, 2021
@thinkh thinkh linked an issue Jan 4, 2021 that may be closed by this pull request
@thinkh
Copy link
Contributor Author

thinkh commented Jan 5, 2021

@anita-steiner and me decided to set this PR on hold for now as it might trigger some more changes in other apps. We might come back to this PR after the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: refactor Refactor the current implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor header dialogs (about, info, bug) to use Dialog class
1 participant