From 96d2b775f004d9044c6f2733c0b250fdafb15e5f Mon Sep 17 00:00:00 2001 From: pengyuesheng Date: Tue, 29 Jan 2019 16:53:28 +0800 Subject: [PATCH] Show error message on the Edit Image form On the edit image form, when min_disk or min_ram is not provided, no error message was shown previously. Change-Id: I50c1ae4b86669e41f7dda469dd542f3cf2d7a387 Closes-Bug: #1813737 --- .../app/core/images/steps/edit-image/edit-image.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openstack_dashboard/static/app/core/images/steps/edit-image/edit-image.html b/openstack_dashboard/static/app/core/images/steps/edit-image/edit-image.html index 1de267a219..a129f10229 100644 --- a/openstack_dashboard/static/app/core/images/steps/edit-image/edit-image.html +++ b/openstack_dashboard/static/app/core/images/steps/edit-image/edit-image.html @@ -95,6 +95,10 @@ ng-required="true" ng-pattern="ctrl.validationRules.integer" ng-model="ctrl.image.min_disk" placeholder="{$ 'The minimum disk size required to boot the image. If unspecified, this value defaults to 0 (no minimum).'|translate $}"> +

+ min disk is required and must be an integer not less than 0 +

@@ -106,6 +110,10 @@ ng-required="true" ng-pattern="ctrl.validationRules.integer" ng-model="ctrl.image.min_ram" placeholder="{$ 'The minimum memory size required to boot the image. If unspecified, this value defaults to 0 (no minimum).'|translate $}"> +

+ min ram is required and must be an integer not less than 0 +