Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apollo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
apollo
Commits
5e39268d
Commit
5e39268d
authored
Jan 24, 2019
by
kezhenxu94
Committed by
Jason Song
Jan 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow config value to be empty. fixes #1882 (#1883)
allow config value to be empty. #1882
parent
96441c0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
apollo-portal/src/main/resources/static/scripts/valdr.js
apollo-portal/src/main/resources/static/scripts/valdr.js
+0
-5
apollo-portal/src/main/resources/static/views/component/item-modal.html
...src/main/resources/static/views/component/item-modal.html
+2
-5
No files found.
apollo-portal/src/main/resources/static/scripts/valdr.js
View file @
5e39268d
...
@@ -75,11 +75,6 @@ application_module.config(function (valdrProvider) {
...
@@ -75,11 +75,6 @@ application_module.config(function (valdrProvider) {
'
required
'
:
{
'
required
'
:
{
'
message
'
:
'
Key不能为空
'
'
message
'
:
'
Key不能为空
'
}
}
},
'
value
'
:
{
'
required
'
:
{
'
message
'
:
'
value不能为空
'
}
},
},
'
comment
'
:
{
'
comment
'
:
{
'
size
'
:
{
'
size
'
:
{
...
...
apollo-portal/src/main/resources/static/views/component/item-modal.html
View file @
5e39268d
...
@@ -26,13 +26,10 @@
...
@@ -26,13 +26,10 @@
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
<label
class=
"col-sm-2 control-label"
>
Value
</label>
<apollorequiredfield></apollorequiredfield>
Value
</label>
<div
class=
"col-sm-10"
valdr-form-group
>
<div
class=
"col-sm-10"
valdr-form-group
>
<textarea
id=
"valueEditor"
name=
"value"
class=
"form-control"
rows=
"6"
tabindex=
"2"
<textarea
id=
"valueEditor"
name=
"value"
class=
"form-control"
rows=
"6"
tabindex=
"2"
ng-required=
"
tru
e"
ng-required=
"
fals
e"
ng-model=
"item.value"
>
ng-model=
"item.value"
>
</textarea>
</textarea>
注意: 隐藏字符(空格、换行符、制表符Tab)容易导致配置出错,如果需要检测Value中隐藏字符请点击
<a
ng-click=
"showHiddenChars()"
>
检测隐藏字符
</a>
注意: 隐藏字符(空格、换行符、制表符Tab)容易导致配置出错,如果需要检测Value中隐藏字符请点击
<a
ng-click=
"showHiddenChars()"
>
检测隐藏字符
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment