9
9
< a ng-href ="{{row.apiObject | navigateResourceURL}} " ng-bind-html ="row.displayName | highlightKeywords : row.state.filterKeywords "> </ a >
10
10
< div ng-bind-html ="row.apiObject.metadata.name | highlightKeywords : row.state.filterKeywords " class ="list-row-longname "> </ div >
11
11
</ h3 >
12
- < div class ="status-icons " ng-if ="!row.expanded ">
12
+ < div class ="status-icons " ng-if ="!row.expanded " ng-init =" tooltipID = 'instance-status-tooltip-' + $id " >
13
13
< notification-icon alerts ="row.notifications "> </ notification-icon >
14
- < div ng-switch ="row.instanceStatus " class ="instance-status-notification ">
14
+ < div ng-switch ="row.instanceStatus " class ="instance-status-notification " id ="{{tooltipID}} ">
15
+ <!-- Set the tooltip container so we can add write CSS rules that target the message. -->
15
16
< span ng-switch-when ="failed "
16
- dynamic-content ="{{row.apiObject | serviceInstanceFailedMessage }} "
17
+ dynamic-content ="{{row.getFailedTooltipText() }} "
17
18
data-toggle ="tooltip "
18
- data-trigger ="hover ">
19
+ data-trigger ="hover "
20
+ data-container ="#{{tooltipID}} ">
19
21
< span class ="pficon pficon-error-circle-o " aria-hidden ="true "> </ span >
20
22
Error
21
23
</ span >
@@ -111,12 +113,16 @@ <h3>
111
113
< span class ="pficon pficon-error-circle-o " aria-hidden ="true "> </ span >
112
114
< span class ="sr-only "> error</ span >
113
115
< span class ="strong "> The service failed.</ span >
114
- < span class ="mar-right-md ">
115
- < truncate-long-text content ="row.apiObject | serviceInstanceFailedMessage " limit ="265 "> </ truncate-long-text >
116
+ < span class ="instance-status-message ">
117
+ < truncate-long-text
118
+ content ="row.apiObject | serviceInstanceFailedMessage "
119
+ expandable ="true "
120
+ limit ="265 "
121
+ newline-limit ="4 "> </ truncate-long-text >
116
122
</ span >
117
- < span ng-if ="row.serviceInstancesVersion | canI : 'delete' " class =" nowrap ">
123
+ < div ng-if ="row.serviceInstancesVersion | canI : 'delete' ">
118
124
< a href ="" ng-click ="row.deprovision() "> Delete This Service</ a >
119
- </ span >
125
+ </ div >
120
126
</ div >
121
127
</ div >
122
128
</ div >
@@ -126,7 +132,13 @@ <h3>
126
132
< span class ="pficon pficon-info " aria-hidden ="true "> </ span >
127
133
< span class ="sr-only "> info</ span >
128
134
< span class ="strong "> The service is not yet ready.</ span >
129
- < truncate-long-text content ="row.apiObject | serviceInstanceReadyMessage " limit ="265 "> </ truncate-long-text >
135
+ < span class ="instance-status-message ">
136
+ < truncate-long-text
137
+ content ="row.apiObject | serviceInstanceReadyMessage "
138
+ expandable ="true "
139
+ limit ="265 "
140
+ newline-limit ="4 "> </ truncate-long-text >
141
+ </ span >
130
142
</ div >
131
143
</ div >
132
144
</ div >
0 commit comments