From fb002236486f2d67237cfdb227e67365e94d5679 Mon Sep 17 00:00:00 2001
From: Julia Friesel <julia.friesel@gmail.com>
Date: Sat, 18 Aug 2018 18:06:10 +0200
Subject: [PATCH] Disable delete button when there is nothing to delete

---
 components/cycle-day/action-buttons.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/cycle-day/action-buttons.js b/components/cycle-day/action-buttons.js
index 488b10dc..0a6b0a07 100644
--- a/components/cycle-day/action-buttons.js
+++ b/components/cycle-day/action-buttons.js
@@ -17,7 +17,8 @@ export default function (navigateToOverView) {
         action: () => {
           saveSymptom(symptom, cycleDay)
           navigateToOverView()
-        }
+        },
+        disabledCondition: !cycleDay[symptom]
       }, {
         title: 'Save',
         action: () => {
-- 
GitLab