Skip to content

Commit

Permalink
Merge pull request #335 from jembi/mediator-config-big-string
Browse files Browse the repository at this point in the history
Adds big string support to mediator config
  • Loading branch information
rcrichton committed Oct 8, 2015
2 parents c73f7b5 + d662b4b commit 42fc53c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ before_script:
- 'bower install'
after_success:
- 'if [ "$TRAVIS_BRANCH" == "master" ]; then curl -v -X POST -H ''api_key: fdb9e03f-f843-4bea-9d02-43ab619dd289'' http://162.243.219.172/deploys/openhim-console/preprod; fi'
sudo: false
5 changes: 5 additions & 0 deletions app/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1294,3 +1294,8 @@ label { position: relative; }
.modal-fullview .route-detail-container .data-group{ height: 100%; }
.modal-fullview .route-detail-container .data-group .data-value { height: 100%; }
/* modal box custom styles override */

.med-no-config {
font-size: 20px;
margin: 50px 0px;
}
13 changes: 11 additions & 2 deletions app/views/mediatorConfigModal.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ <h4 class="modal-title" id="addMediatorConfigLabel">
Edit mediator configuration
</h4>
</div>
<div ng-if="!mediator.configDefs || mediator.configDefs.length === 0" class="med-no-config">
<center>
<span>This mediator has does not have any config options that can be specified here.</span>
</center>
</div>
<form name="form" novalidate>
<div class="modal-body">
<fieldset>
Expand All @@ -18,7 +23,11 @@ <h4 class="modal-title" id="addMediatorConfigLabel">
<div class="form-group" style="float: right;">

<div ng-if="def.type === 'string'">
<input class="form-control" type="text" ng-model="mediator.config[def.param]" ng-disabled="update">
<input class="form-control" type="text" ng-model="mediator.config[def.param]" ng-disabled="update" />
</div>

<div ng-if="def.type === 'bigstring'">
<textarea rows="4" class="form-control" type="text" ng-model="mediator.config[def.param]" ng-disabled="update" />
</div>

<div ng-if="def.type === 'bool'">
Expand All @@ -29,7 +38,7 @@ <h4 class="modal-title" id="addMediatorConfigLabel">
</div>

<div ng-if="def.type === 'number'">
<input class="form-control" type="number" ng-model="mediator.config[def.param]" ng-disabled="update">
<input class="form-control" type="number" ng-model="mediator.config[def.param]" ng-disabled="update" />
</div>

<div ng-if="def.type === 'option'">
Expand Down

0 comments on commit 42fc53c

Please sign in to comment.