Disable delete button when there is nothing to delete
This commit is contained in:
@@ -17,7 +17,8 @@ export default function (navigateToOverView) {
|
|||||||
action: () => {
|
action: () => {
|
||||||
saveSymptom(symptom, cycleDay)
|
saveSymptom(symptom, cycleDay)
|
||||||
navigateToOverView()
|
navigateToOverView()
|
||||||
}
|
},
|
||||||
|
disabledCondition: !cycleDay[symptom]
|
||||||
}, {
|
}, {
|
||||||
title: 'Save',
|
title: 'Save',
|
||||||
action: () => {
|
action: () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user