Skip to content

Commit

Permalink
ui: handle zero value drain duration
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Oct 22, 2021
1 parent 984c96c commit 0eaa94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/templates/components/drain-popover.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))}} />
Expand Down

0 comments on commit 0eaa94a

Please sign in to comment.