Skip to content

Commit e5cab8c

Browse files
committed
hawtio#1123 Added validation on the number field in Fabric-CreateNewContainer. Related to an interesting bug in Angular. See angular/angular.js#2144 (comment)
1 parent e7166b1 commit e5cab8c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hawtio-web/src/main/webapp/app/fabric/js/schemaConfigure.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ module Fabric {
5454
Core.pathSet(schema.properties, ['name', 'tooltip'], 'Name of the container to create (or prefix of the container name if you create multiple containers)');
5555

5656
Core.pathSet(schema.properties, ['number', 'label'], 'Number of containers');
57-
Core.pathSet(schema.properties, ['number', 'tooltip'], 'The number of containers to create; when set higher than 1 a number will be appended to each container name');
57+
Core.pathSet(schema.properties, ['number', 'tooltip'], 'The number of containers to create; when set higher than 1 a number will be appended to each container name. Max value: 99');
5858
Core.pathSet(schema.properties, ['number', 'input-attributes', 'min'], '1');
59+
Core.pathSet(schema.properties, ['number', 'input-attributes', 'max'], '99');
60+
Core.pathSet(schema.properties, ['number', 'input-attributes', 'ng-pattern'], "/^[1-9][0-9]?$/");
61+
Core.pathSet(schema.properties, ['number', 'required'], true);
62+
63+
5964

6065
// mark properties as autofill to avoid issues with angular missing autofill events
6166
Core.pathSet(schema.properties, ['login', 'input-attributes', "autofill"], "true");

0 commit comments

Comments
 (0)