16
16
< div class ="list-pf-details " ng-if ="!row.expanded " ng-switch ="row.instanceStatus ">
17
17
18
18
< span ng-switch-when ="failed "
19
- dynamic-content ="{{row.instanceError.message }} "
19
+ dynamic-content ="{{row.apiObject | serviceInstanceFailedMessage }} "
20
20
data-toggle ="tooltip "
21
21
data-trigger ="hover ">
22
22
< span class ="pficon pficon-error-circle-o " aria-hidden ="true "> </ span >
111
111
< div class ="alert word-break alert-danger ">
112
112
< span class ="pficon pficon-error-circle-o " aria-hidden ="true "> </ span >
113
113
< span class ="sr-only "> error</ span >
114
- < span class ="strong "> {{row.instanceError.message }}</ span >
114
+ < span class ="strong "> {{row.apiObject | serviceInstanceFailedMessage }}</ span >
115
115
</ div >
116
116
</ div >
117
117
</ div >
@@ -132,57 +132,15 @@ <h3>
132
132
< p class ="pre-wrap " ng-bind-html ="row.description | linky "> </ p >
133
133
</ div >
134
134
</ div >
135
- < div class ="section-title " ng-if ="row.isBindable || row.bindings ">
136
- Bindings
137
- </ div >
138
- < div class ="row overview-bindings " ng-repeat ="(name, binding) in row.bindings ">
139
- < div class ="col-sm-5 col-md-6 ">
140
- < div ng-if ="!(row.state.applicationsByBinding[binding.metadata.name] | size) ">
141
- < h3 >
142
- < div class ="component-label ">
143
- Secret
144
- </ div >
145
- < a ng-if ="('secrets' | canI : 'get') && (binding | isBindingReady) "
146
- ng-href ="{{binding.spec.secretName | navigateResourceURL : 'Secret' : row.apiObject.metadata.namespace}} ">
147
- {{binding.spec.secretName}}
148
- </ a >
149
- < span ng-if ="!('secrets' | canI : 'get') || !(binding | isBindingReady) ">
150
- {{binding.spec.secretName}}
151
- </ span >
152
- </ h3 >
153
- </ div >
154
- < div ng-repeat ="target in row.state.applicationsByBinding[binding.metadata.name] track by (target | uid) ">
155
- < h3 >
156
- < div class ="component-label ">
157
- {{target.kind | humanizeKind : true}}
158
- </ div >
159
- < a ng-href ="{{target | navigateResourceURL}} "> {{target.metadata.name}}</ a >
160
- </ h3 >
161
- </ div >
162
- </ div >
163
- < div class ="col-sm-7 col-md-6 overview-bindings ">
164
- < span ng-if ="binding.metadata.deletionTimestamp ">
165
- < span class ="pficon pficon-warning-triangle-o " aria-hidden ="true "> </ span >
166
- Marked for Deletion
167
- </ span >
168
- < span ng-if ="!(binding | isBindingReady) && !binding.metadata.deletionTimestamp ">
169
- < status-icon status ="'Pending' "> </ status-icon > Pending
170
- </ span >
171
- </ div >
172
- </ div >
173
- < div class ="row " ng-if ="row.isBindable && ({resource: 'serviceinstancecredentials', group: 'servicecatalog.k8s.io'} | canI : 'create') ">
174
- < div class ="col-sm-12 ">
175
- < a href ="" ng-click ="row.showOverlayPanel('bindService', {target: row.apiObject}) ">
176
- < span class ="pficon pficon-add-circle-o " aria-hidden ="true "> </ span >
177
- Create Binding
178
- </ a >
179
- </ div >
180
- </ div >
181
- < div class ="row " ng-if ="!row.bindings.length && (!row.isBindable || !({resource: 'serviceinstancecredentials', group: 'servicecatalog.k8s.io'} | canI : 'create')) ">
182
- < div class ="col-sm-12 ">
183
- < em > No bindings</ em >
184
- </ div >
185
- </ div >
135
+ < overview-service-bindings
136
+ ng-if ="row.isBindable || row.bindings "
137
+ section-title ="Bindings "
138
+ namespace ="row.apiObject.metadata.namespace "
139
+ bindings ="row.bindings "
140
+ bindable-service-instances ="row.state.bindableServiceInstances "
141
+ service-classes ="row.state.serviceClasses "
142
+ create-binding ="row.showOverlayPanel('bindService', {target: row.apiObject}) ">
143
+ </ overview-service-bindings >
186
144
</ div >
187
145
</ div >
188
146
</ div >
0 commit comments