Update step-notifier.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Mon, 5 Aug 2019 02:36:21 +0000 (19:36 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Mon, 5 Aug 2019 02:36:21 +0000 (19:36 -0700)
official/step-notifier.groovy

index 8a91b9f..3224186 100755 (executable)
@@ -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