diff --git a/src/sentry/static/sentry/app/components/events/interfaces/request.jsx b/src/sentry/static/sentry/app/components/events/interfaces/request.jsx index bced0f1a12ec72..72ddce59935a14 100644 --- a/src/sentry/static/sentry/app/components/events/interfaces/request.jsx +++ b/src/sentry/static/sentry/app/components/events/interfaces/request.jsx @@ -26,6 +26,13 @@ var RequestInterface = React.createClass({ }; }, + isPartial() { + // We assume we only have a partial interface is we're missing + // an HTTP method. This means we don't have enough information + // to reliably construct a full HTTP request. + return !this.props.data.method; + }, + toggleView(value) { this.setState({ view: value @@ -50,8 +57,10 @@ var RequestInterface = React.createClass({ var parsedUrl = document.createElement("a"); parsedUrl.href = fullUrl; - var title = ( -
+ var children = []; + + if (!this.isPartial()) { + children.push(
{!this.props.isShare && } -
+
,
Rich curl
-

- {data.method || 'GET'} {parsedUrl.pathname} - {parsedUrl.hostname} -

- + ); + } + + children.push( +

+ {data.method || 'GET'} {parsedUrl.pathname} + {parsedUrl.hostname} +

+ ); + + var title = ( +
{children}
); return (