2016-03-02 14:31:49 -06:00
|
|
|
<div class="modal-body" ng-controller="InspectCtrl" ng-init="init()">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h2 class="modal-header-title">
|
2014-08-27 08:54:30 -05:00
|
|
|
Inspector
|
2016-03-02 14:31:49 -06:00
|
|
|
</h2>
|
2014-04-03 15:22:38 -05:00
|
|
|
|
2016-03-02 14:31:49 -06:00
|
|
|
<ul class="gf-tabs">
|
|
|
|
<li class="gf-tabs-item" ng-repeat="tab in ['Request', 'Response', 'JS Error']">
|
|
|
|
<a class="gf-tabs-link" ng-click="editor.index = $index" ng-class="{active: editor.index === $index}">
|
|
|
|
{{::tab}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2014-04-03 15:22:38 -05:00
|
|
|
|
2016-03-02 14:31:49 -06:00
|
|
|
<a class="modal-header-close" ng-click="dismiss();">
|
2015-11-13 02:36:52 -06:00
|
|
|
<i class="fa fa-remove"></i>
|
2016-03-02 14:31:49 -06:00
|
|
|
</a>
|
2014-08-27 08:54:30 -05:00
|
|
|
</div>
|
2014-04-03 15:22:38 -05:00
|
|
|
|
2016-03-02 14:31:49 -06:00
|
|
|
<div class="modal-content">
|
2014-04-03 15:22:38 -05:00
|
|
|
|
2014-08-27 08:54:30 -05:00
|
|
|
<div ng-if="editor.index == 0">
|
2016-02-29 07:35:55 -06:00
|
|
|
<h5 class="section-heading">Request details</h5>
|
|
|
|
<table class="filter-table gf-form-group">
|
2014-08-27 08:54:30 -05:00
|
|
|
<tr>
|
|
|
|
<td>Url</td>
|
|
|
|
<td>{{inspector.error.config.url}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Method</td>
|
|
|
|
<td>{{inspector.error.config.method}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-repeat="(key, value) in inspector.error.config.headers">
|
|
|
|
<td>
|
|
|
|
{{key}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{value}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2014-04-05 09:04:26 -05:00
|
|
|
|
2016-02-29 07:35:55 -06:00
|
|
|
<h5 class="section-heading">Request parameters</h5>
|
|
|
|
<table class="filter-table">
|
2014-08-27 08:54:30 -05:00
|
|
|
<tr ng-repeat="param in request_parameters">
|
|
|
|
<td>
|
|
|
|
{{param.key}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{param.value}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-04-05 09:04:26 -05:00
|
|
|
|
2014-08-27 08:54:30 -05:00
|
|
|
<div ng-if="editor.index == 1">
|
2015-09-02 03:35:15 -05:00
|
|
|
<h5 ng-show="message">{{message}}</h5>
|
|
|
|
<pre class="small">
|
|
|
|
{{response}}
|
|
|
|
</pre>
|
2014-08-27 08:54:30 -05:00
|
|
|
</div>
|
2014-04-05 09:04:26 -05:00
|
|
|
|
2014-08-27 08:54:30 -05:00
|
|
|
<div ng-if="editor.index == 2">
|
2014-04-05 09:04:26 -05:00
|
|
|
|
2014-08-27 08:54:30 -05:00
|
|
|
<label>Message:</label>
|
2016-02-04 08:23:40 -06:00
|
|
|
<pre>
|
|
|
|
{{message}}
|
|
|
|
</pre>
|
2014-08-27 08:54:30 -05:00
|
|
|
|
|
|
|
<label>Stack trace:</label>
|
2016-09-10 05:00:33 -05:00
|
|
|
<pre>
|
|
|
|
{{stack_trace}}
|
|
|
|
</pre>
|
2014-08-27 08:54:30 -05:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2013-07-30 16:58:45 -05:00
|
|
|
</div>
|
2014-08-27 08:54:30 -05:00
|
|
|
|