Merge "nsb: Show method tags in the method tooltip"
diff --git a/src/components/browse/item-details/method-form/index.js b/src/components/browse/item-details/method-form/index.js
index 459f2e5..b3625aa 100644
--- a/src/components/browse/item-details/method-form/index.js
+++ b/src/components/browse/item-details/method-form/index.js
@@ -411,6 +411,15 @@
});
}
+ // If the method has tags, show the tag types and values.
+ if (methodSig.tags.length > 0) {
+ tooltip += '\n\nTags';
+ methodSig.tags.forEach(function(tag) {
+ tooltip += '\n';
+ tooltip += '- ' + tag.val + ': ' + tag._type.name;
+ });
+ }
+
return h('core-tooltip.tooltip.method-tooltip', {
'label': tooltip,
'position': 'top'