From c29e05d7263a62760d0796065a043c34ec665316 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Tue, 1 Aug 2017 19:34:56 -0700 Subject: [PATCH] Display tag externalDocs --- src/core/components/operations.jsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/core/components/operations.jsx b/src/core/components/operations.jsx index c9031651..e4022754 100644 --- a/src/core/components/operations.jsx +++ b/src/core/components/operations.jsx @@ -66,6 +66,8 @@ export default class Operations extends React.Component { taggedOps.map( (tagObj, tag) => { let operations = tagObj.get("operations") let tagDescription = tagObj.getIn(["tagDetails", "description"], null) + let tagExternalDocsDescription = tagObj.getIn(["tagDetails", "externalDocs", "description"]) + let tagExternalDocsUrl = tagObj.getIn(["tagDetails", "externalDocs", "url"]) let isShownKey = ["operations-tag", tag] let showTag = layoutSelectors.isShown(isShownKey, docExpansion === "full" || docExpansion === "list") @@ -89,6 +91,22 @@ export default class Operations extends React.Component { } +
+ { !tagExternalDocsDescription ? null : + + { tagExternalDocsDescription } + { tagExternalDocsUrl ? ": " : null } + { tagExternalDocsUrl ? + e.stopPropagation()} + target={"_blank"} + >{tagExternalDocsUrl} : null + } + + } +
+