diff --git a/setup.py b/setup.py index 10eb9e1..8f1168e 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,8 @@ create_index_settings = { 'properties': { 'title': {'type': 'keyword'}, 'html_source': {'type': 'text', 'analyzer': 'html_analyzer'}, - 'search_text': {'type': 'nested'} + 'search_text': {'type': 'nested'}, + 'color': {'type': 'keyword'} } } } diff --git a/src/components/button.js b/src/components/button.js index 1b40ba0..93d3f90 100644 --- a/src/components/button.js +++ b/src/components/button.js @@ -35,6 +35,13 @@ export const NoteButton = ({note, currentNote, onClick}) => +export const TagButton = ({tag, currentTag, onClick}) => +
+ +
+ export const HighlightButton = ({highlightToggle, onClick}) =>
diff --git a/src/components/chooseAnnotationModal.js b/src/components/chooseAnnotationModal.js index a40f090..8929f98 100644 --- a/src/components/chooseAnnotationModal.js +++ b/src/components/chooseAnnotationModal.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types' import { EditorSubmitButton, EditorCancelButton } from './button' import { DocumentList } from './list' +import helpers from '../modules/helpers' const ChooseAnnotationModal = ({notes, annotationNote, onSubmitClick, selectAnnotationNote}) =>