File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ export default class Operations extends React.Component {
6666 taggedOps . map ( ( tagObj , tag ) => {
6767 let operations = tagObj . get ( "operations" )
6868 let tagDescription = tagObj . getIn ( [ "tagDetails" , "description" ] , null )
69+ let tagExternalDocsDescription = tagObj . getIn ( [ "tagDetails" , "externalDocs" , "description" ] )
70+ let tagExternalDocsUrl = tagObj . getIn ( [ "tagDetails" , "externalDocs" , "url" ] )
6971
7072 let isShownKey = [ "operations-tag" , tag ]
7173 let showTag = layoutSelectors . isShown ( isShownKey , docExpansion === "full" || docExpansion === "list" )
@@ -89,6 +91,22 @@ export default class Operations extends React.Component {
8991 </ small >
9092 }
9193
94+ < div >
95+ { ! tagExternalDocsDescription ? null :
96+ < small >
97+ { tagExternalDocsDescription }
98+ { tagExternalDocsUrl ? ": " : null }
99+ { tagExternalDocsUrl ?
100+ < a
101+ href = { tagExternalDocsUrl }
102+ onClick = { ( e ) => e . stopPropagation ( ) }
103+ target = { "_blank" }
104+ > { tagExternalDocsUrl } </ a > : null
105+ }
106+ </ small >
107+ }
108+ </ div >
109+
92110 < button className = "expand-operation" title = "Expand operation" onClick = { ( ) => layoutActions . show ( isShownKey , ! showTag ) } >
93111 < svg className = "arrow" width = "20" height = "20" >
94112 < use xlinkHref = { showTag ? "#large-arrow-down" : "#large-arrow" } />
You can’t perform that action at this time.
0 commit comments