From 80997f9fe98cd7f6e39986178eaf67e8d4462415 Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Wed, 11 Jul 2018 10:02:54 -0700 Subject: [PATCH] SHIBUI-655 Fixed number step increment --- ui/src/app/schema-form/widget/number/number.component.html | 7 +++++-- .../schema/provider/filebacked-http-common.schema.json | 3 ++- .../schema/provider/filebacked-http-reloading.schema.json | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ui/src/app/schema-form/widget/number/number.component.html b/ui/src/app/schema-form/widget/number/number.component.html index 3f3bde73e..6fe04cf82 100644 --- a/ui/src/app/schema-form/widget/number/number.component.html +++ b/ui/src/app/schema-form/widget/number/number.component.html @@ -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"> \ No newline at end of file diff --git a/ui/src/assets/schema/provider/filebacked-http-common.schema.json b/ui/src/assets/schema/provider/filebacked-http-common.schema.json index b87fa3980..32ae65e76 100644 --- a/ui/src/assets/schema/provider/filebacked-http-common.schema.json +++ b/ui/src/assets/schema/provider/filebacked-http-common.schema.json @@ -22,7 +22,8 @@ } }, "required": [ - "backingFile" + "backingFile", + "backupFileInitNextRefreshDelay" ] }, { diff --git a/ui/src/assets/schema/provider/filebacked-http-reloading.schema.json b/ui/src/assets/schema/provider/filebacked-http-reloading.schema.json index 382637975..bba9e57b5 100644 --- a/ui/src/assets/schema/provider/filebacked-http-reloading.schema.json +++ b/ui/src/assets/schema/provider/filebacked-http-reloading.schema.json @@ -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,