Conversation
✅ Deploy Preview for dailp ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| style={{ color: "#666", fontStyle: "italic", padding: "8px" }} | ||
| > | ||
| No subject headings found in database. | ||
| </div> |
There was a problem hiding this comment.
Having a message for when there are no subject headings is a good addition!
There was a problem hiding this comment.
You could consider making the new custom subject headings blue to match the styling of the other input fields
| } | ||
| } | ||
| setNewSubjectName("") | ||
| } |
There was a problem hiding this comment.
One thing I noticed is that if I submit a new subject heading and reopen the modal, the new subject heading will not be included in the subject headings for the document or in the dropdown of existing subject headings
There was a problem hiding this comment.
Tested this again with an editor account! The subject headings do update for the document after the form is submitted. If I submit a subject heading for one document, that subject heading will not be included in the dropdown for another document. If not sure if that's the intended functionality though
Added functionality for editors to add new subject headings and add from existing ones.