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
692fe815
Commit
692fe815
authored
Sep 01, 2017
by
Jeffrey Phillips
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check pod presets before allowing bind to application
parent
bdc00a2f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
32 deletions
+35
-32
origin-web-common-ui.js
dist/origin-web-common-ui.js
+9
-8
origin-web-common.js
dist/origin-web-common.js
+9
-8
origin-web-common.min.js
dist/origin-web-common.min.js
+0
-0
templates.js
dist/scripts/templates.js
+8
-8
bindResults.html
src/components/binding/bindResults.html
+1
-1
bindServiceForm.html
src/components/binding/bindServiceForm.html
+7
-7
bindServiceForm.js
src/components/binding/bindServiceForm.js
+1
-0
No files found.
dist/origin-web-common-ui.js
View file @
692fe815
...
...
@@ -92,7 +92,7 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
$templateCache
.
put
(
'src/components/binding/bindResults.html'
,
"<div ng-if=
\"
!ctrl.error
\"
>
\
n"
+
" <div ng-if=
\"
!(ctrl.binding | isBindingReady)
\"
class=
\"
bind-status
\"
ng-class=
\"
{'text-center': !ctrl.progressInline, 'show-progress': !ctrl.progressInline}
\"
>
\
n"
+
" <div ng-if=
\"
ctrl.binding &&
!(ctrl.binding | isBindingReady)
\"
class=
\"
bind-status
\"
ng-class=
\"
{'text-center': !ctrl.progressInline, 'show-progress': !ctrl.progressInline}
\"
>
\
n"
+
" <div class=
\"
spinner
\"
ng-class=
\"
{'spinner-sm': ctrl.progressInline, 'spinner-inline': ctrl.progressInline, 'spinner-lg': !ctrl.progressInline}
\"
aria-hidden=
\"
true
\"
></div>
\
n"
+
" <h3 class=
\"
bind-message
\"
>
\
n"
+
" <span class=
\"
sr-only
\"
>Pending</span>
\
n"
+
...
...
@@ -148,21 +148,21 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
"<div class=
\"
bind-form
\"
>
\
n"
+
" <form>
\
n"
+
" <div class=
\"
form-group
\"
>
\
n"
+
"
<label>
\
n"
+
"
<h3>Create a binding for <strong>{{ctrl.serviceClass.externalMetadata.displayName || ctrl.serviceClassName}}</strong></h3>
\
n"
+
"
</label>
\
n"
+
"
<span class=
\"
help-block
\"
>Bindings create a secret containing the necessary information for an application to use this service.</span>
\
n"
+
" <label>
\
n"
+
" <h3>Create a binding for <strong>{{ctrl.serviceClass.externalMetadata.displayName || ctrl.serviceClassName}}</strong></h3>
\
n"
+
" </label>
\
n"
+
" <span class=
\"
help-block
\"
>Bindings create a secret containing the necessary information for an application to use this service.</span>
\
n"
+
" </div>
\
n"
+
" </form>
\
n"
+
"
\
n"
+
" <form name=
\"
ctrl.formName
\"
class=
\"
mar-bottom-lg
\"
>
\
n"
+
" <form n
g-if=
\"
ctrl.allowNoBinding || ctrl.showPodPresets
\"
n
ame=
\"
ctrl.formName
\"
class=
\"
mar-bottom-lg
\"
>
\
n"
+
" <fieldset>
\
n"
+
" <div class=
\"
radio
\"
>
\
n"
+
" <label class=
\"
bind-choice
\"
ng-disabled=
\"
!ctrl.applications.length
\"
>
\
n"
+
" <label
ng-if=
\"
ctrl.showPodPresets
\"
class=
\"
bind-choice
\"
ng-disabled=
\"
!ctrl.applications.length
\"
>
\
n"
+
" <input type=
\"
radio
\"
ng-model=
\"
ctrl.bindType
\"
value=
\"
application
\"
ng-disabled=
\"
!ctrl.applications.length
\"
>
\
n"
+
" Create a secret and inject it into an application
\
n"
+
" </label>
\
n"
+
" <div class=
\"
application-select
\"
>
\
n"
+
" <div
ng-if=
\"
ctrl.showPodPresets
\"
class=
\"
application-select
\"
>
\
n"
+
" <ui-select ng-model=
\"
ctrl.appToBind
\"
\
n"
+
" ng-disabled=
\"
ctrl.bindType !== 'application'
\"
\
n"
+
" ng-required=
\"
ctrl.bindType === 'application'
\"
>
\
n"
+
...
...
@@ -530,6 +530,7 @@ angular.module('openshiftCommonUI').component('bindServiceForm', {
bindings
:
{
serviceClass
:
'<'
,
serviceClassName
:
'<'
,
showPodPresets
:
'<'
,
applications
:
'<'
,
formName
:
'='
,
allowNoBinding
:
'<?'
,
...
...
dist/origin-web-common.js
View file @
692fe815
...
...
@@ -263,7 +263,7 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
$templateCache
.
put
(
'src/components/binding/bindResults.html'
,
"<div ng-if=
\"
!ctrl.error
\"
>
\
n"
+
" <div ng-if=
\"
!(ctrl.binding | isBindingReady)
\"
class=
\"
bind-status
\"
ng-class=
\"
{'text-center': !ctrl.progressInline, 'show-progress': !ctrl.progressInline}
\"
>
\
n"
+
" <div ng-if=
\"
ctrl.binding &&
!(ctrl.binding | isBindingReady)
\"
class=
\"
bind-status
\"
ng-class=
\"
{'text-center': !ctrl.progressInline, 'show-progress': !ctrl.progressInline}
\"
>
\
n"
+
" <div class=
\"
spinner
\"
ng-class=
\"
{'spinner-sm': ctrl.progressInline, 'spinner-inline': ctrl.progressInline, 'spinner-lg': !ctrl.progressInline}
\"
aria-hidden=
\"
true
\"
></div>
\
n"
+
" <h3 class=
\"
bind-message
\"
>
\
n"
+
" <span class=
\"
sr-only
\"
>Pending</span>
\
n"
+
...
...
@@ -319,21 +319,21 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
"<div class=
\"
bind-form
\"
>
\
n"
+
" <form>
\
n"
+
" <div class=
\"
form-group
\"
>
\
n"
+
"
<label>
\
n"
+
"
<h3>Create a binding for <strong>{{ctrl.serviceClass.externalMetadata.displayName || ctrl.serviceClassName}}</strong></h3>
\
n"
+
"
</label>
\
n"
+
"
<span class=
\"
help-block
\"
>Bindings create a secret containing the necessary information for an application to use this service.</span>
\
n"
+
" <label>
\
n"
+
" <h3>Create a binding for <strong>{{ctrl.serviceClass.externalMetadata.displayName || ctrl.serviceClassName}}</strong></h3>
\
n"
+
" </label>
\
n"
+
" <span class=
\"
help-block
\"
>Bindings create a secret containing the necessary information for an application to use this service.</span>
\
n"
+
" </div>
\
n"
+
" </form>
\
n"
+
"
\
n"
+
" <form name=
\"
ctrl.formName
\"
class=
\"
mar-bottom-lg
\"
>
\
n"
+
" <form n
g-if=
\"
ctrl.allowNoBinding || ctrl.showPodPresets
\"
n
ame=
\"
ctrl.formName
\"
class=
\"
mar-bottom-lg
\"
>
\
n"
+
" <fieldset>
\
n"
+
" <div class=
\"
radio
\"
>
\
n"
+
" <label class=
\"
bind-choice
\"
ng-disabled=
\"
!ctrl.applications.length
\"
>
\
n"
+
" <label
ng-if=
\"
ctrl.showPodPresets
\"
class=
\"
bind-choice
\"
ng-disabled=
\"
!ctrl.applications.length
\"
>
\
n"
+
" <input type=
\"
radio
\"
ng-model=
\"
ctrl.bindType
\"
value=
\"
application
\"
ng-disabled=
\"
!ctrl.applications.length
\"
>
\
n"
+
" Create a secret and inject it into an application
\
n"
+
" </label>
\
n"
+
" <div class=
\"
application-select
\"
>
\
n"
+
" <div
ng-if=
\"
ctrl.showPodPresets
\"
class=
\"
application-select
\"
>
\
n"
+
" <ui-select ng-model=
\"
ctrl.appToBind
\"
\
n"
+
" ng-disabled=
\"
ctrl.bindType !== 'application'
\"
\
n"
+
" ng-required=
\"
ctrl.bindType === 'application'
\"
>
\
n"
+
...
...
@@ -701,6 +701,7 @@ angular.module('openshiftCommonUI').component('bindServiceForm', {
bindings
:
{
serviceClass
:
'<'
,
serviceClassName
:
'<'
,
showPodPresets
:
'<'
,
applications
:
'<'
,
formName
:
'='
,
allowNoBinding
:
'<?'
,
...
...
dist/origin-web-common.min.js
View file @
692fe815
This diff is collapsed.
Click to expand it.
dist/scripts/templates.js
View file @
692fe815
...
...
@@ -63,7 +63,7 @@ angular.module('openshiftCommonUI').run(['$templateCache', function($templateCac
$templateCache
.
put
(
'src/components/binding/bindResults.html'
,
"<div ng-if=
\"
!ctrl.error
\"
>
\
n"
+
" <div ng-if=
\"
!(ctrl.binding | isBindingReady)
\"
class=
\"
bind-status
\"
ng-class=
\"
{'text-center': !ctrl.progressInline, 'show-progress': !ctrl.progressInline}
\"
>
\
n"
+
" <div ng-if=
\"
ctrl.binding &&
!(ctrl.binding | isBindingReady)
\"
class=
\"
bind-status
\"
ng-class=
\"
{'text-center': !ctrl.progressInline, 'show-progress': !ctrl.progressInline}
\"
>
\
n"
+
" <div class=
\"
spinner
\"
ng-class=
\"
{'spinner-sm': ctrl.progressInline, 'spinner-inline': ctrl.progressInline, 'spinner-lg': !ctrl.progressInline}
\"
aria-hidden=
\"
true
\"
></div>
\
n"
+
" <h3 class=
\"
bind-message
\"
>
\
n"
+
" <span class=
\"
sr-only
\"
>Pending</span>
\
n"
+
...
...
@@ -119,21 +119,21 @@ angular.module('openshiftCommonUI').run(['$templateCache', function($templateCac
"<div class=
\"
bind-form
\"
>
\
n"
+
" <form>
\
n"
+
" <div class=
\"
form-group
\"
>
\
n"
+
"
<label>
\
n"
+
"
<h3>Create a binding for <strong>{{ctrl.serviceClass.externalMetadata.displayName || ctrl.serviceClassName}}</strong></h3>
\
n"
+
"
</label>
\
n"
+
"
<span class=
\"
help-block
\"
>Bindings create a secret containing the necessary information for an application to use this service.</span>
\
n"
+
" <label>
\
n"
+
" <h3>Create a binding for <strong>{{ctrl.serviceClass.externalMetadata.displayName || ctrl.serviceClassName}}</strong></h3>
\
n"
+
" </label>
\
n"
+
" <span class=
\"
help-block
\"
>Bindings create a secret containing the necessary information for an application to use this service.</span>
\
n"
+
" </div>
\
n"
+
" </form>
\
n"
+
"
\
n"
+
" <form name=
\"
ctrl.formName
\"
class=
\"
mar-bottom-lg
\"
>
\
n"
+
" <form n
g-if=
\"
ctrl.allowNoBinding || ctrl.showPodPresets
\"
n
ame=
\"
ctrl.formName
\"
class=
\"
mar-bottom-lg
\"
>
\
n"
+
" <fieldset>
\
n"
+
" <div class=
\"
radio
\"
>
\
n"
+
" <label class=
\"
bind-choice
\"
ng-disabled=
\"
!ctrl.applications.length
\"
>
\
n"
+
" <label
ng-if=
\"
ctrl.showPodPresets
\"
class=
\"
bind-choice
\"
ng-disabled=
\"
!ctrl.applications.length
\"
>
\
n"
+
" <input type=
\"
radio
\"
ng-model=
\"
ctrl.bindType
\"
value=
\"
application
\"
ng-disabled=
\"
!ctrl.applications.length
\"
>
\
n"
+
" Create a secret and inject it into an application
\
n"
+
" </label>
\
n"
+
" <div class=
\"
application-select
\"
>
\
n"
+
" <div
ng-if=
\"
ctrl.showPodPresets
\"
class=
\"
application-select
\"
>
\
n"
+
" <ui-select ng-model=
\"
ctrl.appToBind
\"
\
n"
+
" ng-disabled=
\"
ctrl.bindType !== 'application'
\"
\
n"
+
" ng-required=
\"
ctrl.bindType === 'application'
\"
>
\
n"
+
...
...
src/components/binding/bindResults.html
View file @
692fe815
<div
ng-if=
"!ctrl.error"
>
<div
ng-if=
"!(ctrl.binding | isBindingReady)"
class=
"bind-status"
ng-class=
"{'text-center': !ctrl.progressInline, 'show-progress': !ctrl.progressInline}"
>
<div
ng-if=
"
ctrl.binding &&
!(ctrl.binding | isBindingReady)"
class=
"bind-status"
ng-class=
"{'text-center': !ctrl.progressInline, 'show-progress': !ctrl.progressInline}"
>
<div
class=
"spinner"
ng-class=
"{'spinner-sm': ctrl.progressInline, 'spinner-inline': ctrl.progressInline, 'spinner-lg': !ctrl.progressInline}"
aria-hidden=
"true"
></div>
<h3
class=
"bind-message"
>
<span
class=
"sr-only"
>
Pending
</span>
...
...
src/components/binding/bindServiceForm.html
View file @
692fe815
<div
class=
"bind-form"
>
<form>
<div
class=
"form-group"
>
<label>
<h3>
Create a binding for
<strong>
{{ctrl.serviceClass.externalMetadata.displayName || ctrl.serviceClassName}}
</strong></h3>
</label>
<span
class=
"help-block"
>
Bindings create a secret containing the necessary information for an application to use this service.
</span>
<label>
<h3>
Create a binding for
<strong>
{{ctrl.serviceClass.externalMetadata.displayName || ctrl.serviceClassName}}
</strong></h3>
</label>
<span
class=
"help-block"
>
Bindings create a secret containing the necessary information for an application to use this service.
</span>
</div>
</form>
<form
name=
"ctrl.formName"
class=
"mar-bottom-lg"
>
<form
n
g-if=
"ctrl.allowNoBinding || ctrl.showPodPresets"
n
ame=
"ctrl.formName"
class=
"mar-bottom-lg"
>
<fieldset>
<div
class=
"radio"
>
<label
class=
"bind-choice"
ng-disabled=
"!ctrl.applications.length"
>
<label
ng-if=
"ctrl.showPodPresets"
class=
"bind-choice"
ng-disabled=
"!ctrl.applications.length"
>
<input
type=
"radio"
ng-model=
"ctrl.bindType"
value=
"application"
ng-disabled=
"!ctrl.applications.length"
>
Create a secret and inject it into an application
</label>
<div
class=
"application-select"
>
<div
ng-if=
"ctrl.showPodPresets"
class=
"application-select"
>
<ui-select
ng-model=
"ctrl.appToBind"
ng-disabled=
"ctrl.bindType !== 'application'"
ng-required=
"ctrl.bindType === 'application'"
>
...
...
src/components/binding/bindServiceForm.js
View file @
692fe815
...
...
@@ -5,6 +5,7 @@ angular.module('openshiftCommonUI').component('bindServiceForm', {
bindings
:
{
serviceClass
:
'<'
,
serviceClassName
:
'<'
,
showPodPresets
:
'<'
,
applications
:
'<'
,
formName
:
'='
,
allowNoBinding
:
'<?'
,
...
...
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