Skip to content

Commit

Permalink
SHIBUI-655 Fixed number step increment
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jul 11, 2018
1 parent de40c3f commit 80997f9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions ui/src/app/schema-form/widget/number/number.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
[name]="name"
class="text-widget integer-widget form-control"
[formControl]="control"
[attr.type]="'number'" [attr.min]="schema.minimum" [attr.max]="schema.maximum"
[attr.type]="'number'"
[attr.min]="schema.minimum"
[attr.max]="schema.maximum"
[attr.placeholder]="schema.placeholder"
[attr.maxLength]="schema.maxLength || null"
[attr.minLength]="schema.minLength || null">
[attr.minLength]="schema.minLength || null"
[attr.step]="schema.multipleOf || schema.widget.step">
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
}
},
"required": [
"backingFile"
"backingFile",
"backupFileInitNextRefreshDelay"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
"title": "Refresh Delay Factor",
"description": "A factor applied to the initially determined refresh time in order to determine the next refresh time (typically to ensure refresh takes place prior to the metadata's expiration). Attempts to refresh metadata will generally begin around the product of this number and the maximum refresh delay.",
"type": "number",
"widget": {
"id": "number",
"step": 0.01
},
"placeholder": "Real Number (between 0.0 and 1.0)",
"minimum": 0,
"maximum": 1,
Expand Down

0 comments on commit 80997f9

Please sign in to comment.