Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
origin-web-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Java-于龙
origin-web-common
Commits
a911a5c3
Commit
a911a5c3
authored
May 24, 2017
by
Jeffrey Phillips
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable application selection in bind form when no applications.
parent
651aa230
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
28 deletions
+28
-28
origin-web-common-ui.js
dist/origin-web-common-ui.js
+7
-7
origin-web-common.js
dist/origin-web-common.js
+7
-7
origin-web-common.min.js
dist/origin-web-common.min.js
+0
-0
templates.js
dist/scripts/templates.js
+7
-7
bindServiceForm.html
src/components/binding/bindServiceForm.html
+7
-7
No files found.
dist/origin-web-common-ui.js
View file @
a911a5c3
...
...
@@ -136,19 +136,19 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
" <form name=
\"
ctrl.formName
\"
class=
\"
mar-bottom-lg
\"
>
\
n"
+
" <fieldset>
\
n"
+
" <div class=
\"
radio
\"
>
\
n"
+
" <label class=
\"
bind-choice
\"
>
\
n"
+
" <input type=
\"
radio
\"
ng-model=
\"
ctrl.shouldBindToApp
\"
value=
\"
true
\"
>
\
n"
+
" <label class=
\"
bind-choice
\"
ng-disabled=
\"
!$ctrl.applications.length
\"
>
\
n"
+
" <input type=
\"
radio
\"
ng-model=
\"
ctrl.shouldBindToApp
\"
value=
\"
true
\"
ng-disabled=
\"
!$ctrl.applications.length
\"
>
\
n"
+
" Bind to an application
\
n"
+
" </label>
\
n"
+
" <div class=
\"
application-select
\"
>
\
n"
+
" <ui-select ng-model=
\"
ctrl.appToBind
\"
\
n"
+
" ng-disabled=
\"
ctrl.shouldBindToApp !== 'true'
\"
\
n"
+
" ng-required=
\"
ctrl.shouldBindToApp === 'true'
\"
>
\
n"
+
" <ui-select-match placeholder=
\"
Select an application
\"
>
\
n"
+
" <span>
\
n"
+
" {{$select.selected.metadata.name}}
\
n"
+
" <small class=
\"
text-muted
\"
>– {{$select.selected.kind | humanizeKind : true}}</small>
\
n"
+
" </span>
\
n"
+
" <ui-select-match placeholder=
\"
{{$ctrl.applications.length ? 'Select an application' : 'There are no applications in this project'}}
\"
>
\
n"
+
"
<span>
\
n"
+
"
{{$select.selected.metadata.name}}
\
n"
+
"
<small class=
\"
text-muted
\"
>– {{$select.selected.kind | humanizeKind : true}}</small>
\
n"
+
"
</span>
\
n"
+
" </ui-select-match>
\
n"
+
" <ui-select-choices
\
n"
+
" repeat=
\"
application in (ctrl.applications) | filter : { metadata: { name: $select.search } } track by (application | uid)
\"
\
n"
+
...
...
dist/origin-web-common.js
View file @
a911a5c3
...
...
@@ -307,19 +307,19 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
" <form name=
\"
ctrl.formName
\"
class=
\"
mar-bottom-lg
\"
>
\
n"
+
" <fieldset>
\
n"
+
" <div class=
\"
radio
\"
>
\
n"
+
" <label class=
\"
bind-choice
\"
>
\
n"
+
" <input type=
\"
radio
\"
ng-model=
\"
ctrl.shouldBindToApp
\"
value=
\"
true
\"
>
\
n"
+
" <label class=
\"
bind-choice
\"
ng-disabled=
\"
!$ctrl.applications.length
\"
>
\
n"
+
" <input type=
\"
radio
\"
ng-model=
\"
ctrl.shouldBindToApp
\"
value=
\"
true
\"
ng-disabled=
\"
!$ctrl.applications.length
\"
>
\
n"
+
" Bind to an application
\
n"
+
" </label>
\
n"
+
" <div class=
\"
application-select
\"
>
\
n"
+
" <ui-select ng-model=
\"
ctrl.appToBind
\"
\
n"
+
" ng-disabled=
\"
ctrl.shouldBindToApp !== 'true'
\"
\
n"
+
" ng-required=
\"
ctrl.shouldBindToApp === 'true'
\"
>
\
n"
+
" <ui-select-match placeholder=
\"
Select an application
\"
>
\
n"
+
" <span>
\
n"
+
" {{$select.selected.metadata.name}}
\
n"
+
" <small class=
\"
text-muted
\"
>– {{$select.selected.kind | humanizeKind : true}}</small>
\
n"
+
" </span>
\
n"
+
" <ui-select-match placeholder=
\"
{{$ctrl.applications.length ? 'Select an application' : 'There are no applications in this project'}}
\"
>
\
n"
+
"
<span>
\
n"
+
"
{{$select.selected.metadata.name}}
\
n"
+
"
<small class=
\"
text-muted
\"
>– {{$select.selected.kind | humanizeKind : true}}</small>
\
n"
+
"
</span>
\
n"
+
" </ui-select-match>
\
n"
+
" <ui-select-choices
\
n"
+
" repeat=
\"
application in (ctrl.applications) | filter : { metadata: { name: $select.search } } track by (application | uid)
\"
\
n"
+
...
...
dist/origin-web-common.min.js
View file @
a911a5c3
This diff is collapsed.
Click to expand it.
dist/scripts/templates.js
View file @
a911a5c3
...
...
@@ -118,19 +118,19 @@ angular.module('openshiftCommonUI').run(['$templateCache', function($templateCac
" <form name=
\"
ctrl.formName
\"
class=
\"
mar-bottom-lg
\"
>
\
n"
+
" <fieldset>
\
n"
+
" <div class=
\"
radio
\"
>
\
n"
+
" <label class=
\"
bind-choice
\"
>
\
n"
+
" <input type=
\"
radio
\"
ng-model=
\"
ctrl.shouldBindToApp
\"
value=
\"
true
\"
>
\
n"
+
" <label class=
\"
bind-choice
\"
ng-disabled=
\"
!$ctrl.applications.length
\"
>
\
n"
+
" <input type=
\"
radio
\"
ng-model=
\"
ctrl.shouldBindToApp
\"
value=
\"
true
\"
ng-disabled=
\"
!$ctrl.applications.length
\"
>
\
n"
+
" Bind to an application
\
n"
+
" </label>
\
n"
+
" <div class=
\"
application-select
\"
>
\
n"
+
" <ui-select ng-model=
\"
ctrl.appToBind
\"
\
n"
+
" ng-disabled=
\"
ctrl.shouldBindToApp !== 'true'
\"
\
n"
+
" ng-required=
\"
ctrl.shouldBindToApp === 'true'
\"
>
\
n"
+
" <ui-select-match placeholder=
\"
Select an application
\"
>
\
n"
+
" <span>
\
n"
+
" {{$select.selected.metadata.name}}
\
n"
+
" <small class=
\"
text-muted
\"
>– {{$select.selected.kind | humanizeKind : true}}</small>
\
n"
+
" </span>
\
n"
+
" <ui-select-match placeholder=
\"
{{$ctrl.applications.length ? 'Select an application' : 'There are no applications in this project'}}
\"
>
\
n"
+
"
<span>
\
n"
+
"
{{$select.selected.metadata.name}}
\
n"
+
"
<small class=
\"
text-muted
\"
>– {{$select.selected.kind | humanizeKind : true}}</small>
\
n"
+
"
</span>
\
n"
+
" </ui-select-match>
\
n"
+
" <ui-select-choices
\
n"
+
" repeat=
\"
application in (ctrl.applications) | filter : { metadata: { name: $select.search } } track by (application | uid)
\"
\
n"
+
...
...
src/components/binding/bindServiceForm.html
View file @
a911a5c3
...
...
@@ -11,19 +11,19 @@
<form
name=
"ctrl.formName"
class=
"mar-bottom-lg"
>
<fieldset>
<div
class=
"radio"
>
<label
class=
"bind-choice"
>
<input
type=
"radio"
ng-model=
"ctrl.shouldBindToApp"
value=
"true"
>
<label
class=
"bind-choice"
ng-disabled=
"!$ctrl.applications.length"
>
<input
type=
"radio"
ng-model=
"ctrl.shouldBindToApp"
value=
"true"
ng-disabled=
"!$ctrl.applications.length"
>
Bind to an application
</label>
<div
class=
"application-select"
>
<ui-select
ng-model=
"ctrl.appToBind"
ng-disabled=
"ctrl.shouldBindToApp !== 'true'"
ng-required=
"ctrl.shouldBindToApp === 'true'"
>
<ui-select-match
placeholder=
"
Select an application
"
>
<span>
{{$select.selected.metadata.name}}
<small
class=
"text-muted"
>
–
{{$select.selected.kind | humanizeKind : true}}
</small>
</span>
<ui-select-match
placeholder=
"
{{$ctrl.applications.length ? 'Select an application' : 'There are no applications in this project'}}
"
>
<span>
{{$select.selected.metadata.name}}
<small
class=
"text-muted"
>
–
{{$select.selected.kind | humanizeKind : true}}
</small>
</span>
</ui-select-match>
<ui-select-choices
repeat=
"application in (ctrl.applications) | filter : { metadata: { name: $select.search } } track by (application | uid)"
...
...
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