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 8a91b9fd3d4817518785231ea6b81bdb33d68461..322418655d4b46a08f03c1b18a88845dea3976b2 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