Skip to content

Commit

Permalink
hawtio#1123 Added validation on the number field in Fabric-CreateNewC…
Browse files Browse the repository at this point in the history
…ontainer. Related to an interesting bug in Angular. See angular/angular.js#2144 (comment)
  • Loading branch information
paoloantinori committed May 27, 2014
1 parent e7166b1 commit e5cab8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hawtio-web/src/main/webapp/app/fabric/js/schemaConfigure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ module Fabric {
Core.pathSet(schema.properties, ['name', 'tooltip'], 'Name of the container to create (or prefix of the container name if you create multiple containers)');

Core.pathSet(schema.properties, ['number', 'label'], 'Number of containers');
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');
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');
Core.pathSet(schema.properties, ['number', 'input-attributes', 'min'], '1');
Core.pathSet(schema.properties, ['number', 'input-attributes', 'max'], '99');
Core.pathSet(schema.properties, ['number', 'input-attributes', 'ng-pattern'], "/^[1-9][0-9]?$/");
Core.pathSet(schema.properties, ['number', 'required'], true);



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

0 comments on commit e5cab8c

Please sign in to comment.