Let the user delete menstruation tag(s) after deleting all entries
Closed this issue · 3 comments
Let's add a button to the DangerCard that lets you clear the menses tag after deleting all entries.
The button should only be enabled when entries.length === 0.
When clicked it should use the upsertMensesTags([])
.
upsertMensesTags
needs to be imported from ../settings
.
The above comment is a little out of date, follow steps below @olavea:
Step 1: Add a section similar to delete entries, but with a button that says "Clear choosen tag(s)"
Step 2: Set disabled to true on button when entries.length > 0
Step 3: Make the button show an alert "Clearing tags" when clicked. (This will later be replaced with proper functionality).
Step 4: Wait until @raae has made a clearMensenTags
function to be imported from "../settings"
Step 5: Call clearMensesTag
when the button is clicked.