Skip to content

Commit 5f9ad0d

Browse files
author
OpenShift Bot
authored
Merge pull request openshift#813 from benjaminapetersen/membership-tooltip
Merged by openshift-bot
2 parents 75f6fe4 + a7d4c2b commit 5f9ad0d

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

app/scripts/controllers/membership.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ angular
166166
if(!role) {
167167
return;
168168
}
169-
var noInfoMessage = 'There is no additional information about this role.';
169+
// NOTE: hiding tooltip entirely for now, until descriptions merge:
170+
// https://github.com/openshift/origin/pull/11328
171+
// the tooltip will still work if roles are manually annotated
172+
var noInfoMessage = ''; // prev: 'There is no additional information about this role.';
170173
var namespace = _.get(role, 'metadata.namespace');
171174
var name = _.get(role, 'metadata.name');
172175
var prefix = namespace ? (namespace + ' / ' + name + ': ') : '';

app/scripts/directives/actionChip.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ angular
2525
scope: {
2626
key: '=?',
2727
value: '=?',
28-
keyHelp: '=?',
29-
valueHelp: '=?',
28+
keyHelp: '=?', // optional, or empty string for false
29+
valueHelp: '=', // optional, or empty string for false
3030
action: '&?', // callback fn,
3131
actionIcon: '=?', // default is pficon pficon-close
3232
showAction: '=?' // bool to show-hide the action button

dist/scripts/scripts.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4912,7 +4912,7 @@ name:b.metadata.name
49124912
},
49134913
roleHelp:function(a) {
49144914
if (a) {
4915-
var b = "There is no additional information about this role.", c = _.get(a, "metadata.namespace"), d = _.get(a, "metadata.name"), e = c ? c + " / " + d + ": " :"";
4915+
var b = "", c = _.get(a, "metadata.namespace"), d = _.get(a, "metadata.name"), e = c ? c + " / " + d + ": " :"";
49164916
return a ? e + (q(a, "description") || b) :b;
49174917
}
49184918
}
@@ -9956,7 +9956,7 @@ scope:{
99569956
key:"=?",
99579957
value:"=?",
99589958
keyHelp:"=?",
9959-
valueHelp:"=?",
9959+
valueHelp:"=",
99609960
action:"&?",
99619961
actionIcon:"=?",
99629962
showAction:"=?"

0 commit comments

Comments
 (0)