WIP on buttons, simplify, remove some event dispatch

- I made the buttons work like GitHub comment-on-issue buttons
before typing:  "Close Note" / "Comment" (disabled)
after typing:   "Close and Comment" / "Comment" (enabled)

- I removed a bunch of the event dispatches.  These are useful for sending
events to listeners/observers outside of the module.  In this case I think
we can handle most of the things from within the uiNoteEditor.  We can still
dispatch an 'update' event so that modeSelectNote can reselect and redraw
the note after some change happens to it.

TODO - make the buttons work / check the OSM API stuff.
This commit is contained in:
Bryan Housel
2018-07-11 23:10:01 -04:00
parent 3454753bf6
commit 91add0c33e
6 changed files with 159 additions and 220 deletions
+1 -1
View File
@@ -76,7 +76,7 @@
.note-header-label {
background-color: #f6f6f6;
padding: 0 10px;
padding: 0 15px;
flex: 1 1 100%;
font-size: 14px;
font-weight: bold;