From: Seyed Amir Hossein Aqajari Date: Mon, 5 Aug 2019 02:36:21 +0000 (-0700) Subject: Update step-notifier.groovy X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartapps.git;a=commitdiff_plain;h=7e9f6efc792e0cbef90a4ef42a96c99e52b42191 Update step-notifier.groovy --- diff --git a/official/step-notifier.groovy b/official/step-notifier.groovy index 8a91b9f..3224186 100755 --- a/official/step-notifier.groovy +++ b/official/step-notifier.groovy @@ -42,7 +42,7 @@ def setupNotifications() { } section("Notify Me When"){ - input "thresholdType", "enum", title: "Select When to Notify", required: false, defaultValue: "Goal Reached", options: [["Goal":"Goal Reached"],["Threshold":"Specific Number of Steps"]], submitOnChange:true + input "thresholdType", "enum", title: "Select When to Notify", required: false, defaultValue: "Goal Reached", options: ["Goal","Threshold"], submitOnChange:true if (settings.thresholdType) { if (settings.thresholdType == "Threshold") { input "threshold", "number", title: "Enter Step Threshold", description: "Number", required: true