From 0eabd02cbee86741c60486e22f9489c9c166c2d8 Mon Sep 17 00:00:00 2001 From: Samuel Padgett Date: Thu, 14 Sep 2017 08:27:50 -0400 Subject: [PATCH] Bug 1491495 - Allow decimals in some number inputs Change compute resources and storage amount inputs to accept decimals. --- app/views/_compute-resource.html | 2 +- app/views/directives/osc-persistent-volume-claim.html | 2 +- dist/scripts/templates.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/_compute-resource.html b/app/views/_compute-resource.html index 8fa43bd8cd..6fa84da626 100644 --- a/app/views/_compute-resource.html +++ b/app/views/_compute-resource.html @@ -9,7 +9,7 @@ ng-attr-id="{{id}}" ng-model="input.amount" min="0" - pattern="\d*" + pattern="\d+(\.\d+)?" ng-attr-placeholder="{{placeholder}}" select-on-focus class="form-control" diff --git a/app/views/directives/osc-persistent-volume-claim.html b/app/views/directives/osc-persistent-volume-claim.html index 3dfec98d36..37e0f0ce3b 100644 --- a/app/views/directives/osc-persistent-volume-claim.html +++ b/app/views/directives/osc-persistent-volume-claim.html @@ -146,7 +146,7 @@ ng-model="claim.amount" required min="0" - pattern="\d*" + pattern="\d+(\.\d+)?" select-on-focus class="form-control" aria-describedby="claim-capacity-help"> diff --git a/dist/scripts/templates.js b/dist/scripts/templates.js index 4cadcefb8c..e58e5fb737 100644 --- a/dist/scripts/templates.js +++ b/dist/scripts/templates.js @@ -75,7 +75,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function( "
\n" + "
\n" + "\n" + - "\n" + + "\n" + "
\n" + "
\n" + "\n" + @@ -7895,7 +7895,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function( "
\n" + "
\n" + "\n" + - "\n" + + "\n" + "
\n" + "
\n" + "\n" +