Skip to content

Commit

Permalink
Allow config value to be empty. fixes apolloconfig#1882 (apolloconfig…
Browse files Browse the repository at this point in the history
…#1883)

allow config value to be empty. apolloconfig#1882
  • Loading branch information
kezhenxu94 authored and nobodyiam committed Jan 24, 2019
1 parent 96441c0 commit 5e39268
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 0 additions & 5 deletions apollo-portal/src/main/resources/static/scripts/valdr.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ application_module.config(function (valdrProvider) {
'required': {
'message': 'Key不能为空'
}
},
'value': {
'required': {
'message': 'value不能为空'
}
},
'comment': {
'size': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@ <h4 class="modal-title">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
<apollorequiredfield></apollorequiredfield>
Value
</label>
<label class="col-sm-2 control-label">Value</label>
<div class="col-sm-10" valdr-form-group>
<textarea id="valueEditor" name="value" class="form-control" rows="6" tabindex="2"
ng-required="true"
ng-required="false"
ng-model="item.value">
</textarea>
注意: 隐藏字符(空格、换行符、制表符Tab)容易导致配置出错,如果需要检测Value中隐藏字符请点击 <a ng-click="showHiddenChars()">检测隐藏字符</a>
Expand Down

0 comments on commit 5e39268

Please sign in to comment.