From 0eaa94a7681e6a58700dc4594ade4f03ac01d51d Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Fri, 22 Oct 2021 10:14:11 -0400 Subject: [PATCH] ui: handle zero value drain duration --- ui/app/templates/components/drain-popover.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/templates/components/drain-popover.hbs b/ui/app/templates/components/drain-popover.hbs index 2f2257b1b4cb..a2c6af2eaf49 100644 --- a/ui/app/templates/components/drain-popover.hbs +++ b/ui/app/templates/components/drain-popover.hbs @@ -42,7 +42,7 @@ type="text" class="input {{if this.parseError "is-danger"}}" placeholder="1h30m" - value="{{this.customDuration}}" + value={{if (eq this.customDuration 0) "" this.customDuration}} oninput={{action (queue (action (mut this.parseError) '') (action (mut this.customDuration) value="target.value"))}} />