Skip to content

Commit

Permalink
improve the openshift create container form
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Sep 3, 2013
1 parent 3a96f14 commit 5dec734
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions hawtio-web/src/main/webapp/app/fabric/js/schemaConfigure.ts
Expand Up @@ -60,6 +60,36 @@ module Fabric {
};
break;

case 'openshift':
delete schema.properties['parent'];
delete schema.properties['manualIp'];
delete schema.properties['preferredAddress'];
delete schema.properties['resolver'];
delete schema.properties['ensembleServer'];
delete schema.properties['proxyUri'];
delete schema.properties['adminAccess'];
delete schema.properties['path'];
delete schema.properties['bindAddress'];
delete schema.properties['hostNameContext'];

schema.properties['password']['type'] = 'password';

bulkSet(schema, ['serverUrl', 'login', 'password', 'domain'], 'required', true);
schema['tabs'] = {
'Default': ['name', 'serverUrl', 'login', 'password', 'domain'],
'Advanced': ['gearProfile', 'number', 'environmentalVariables', 'systemProperties', 'jvmOpts', '*']
};

/*
// add some defaults...
// TODO this should be easier!
Core.pathSet(schema, ["properties", "serverUrl", "formTemplate"],
'<input type="text" ng-model="entity.serverUrl" value="">');
*/
break;



case 'createEnsemble':
delete schema['properties']['name'];
angular.forEach(["username", "password", "role"], (name) => {
Expand Down

0 comments on commit 5dec734

Please sign in to comment.