2015-02-02 01:34:54 -06:00
|
|
|
<div class="modal-body gf-box gf-box-no-margin" ng-controller="InspectCtrl" ng-init="init()">
|
|
|
|
<div class="gf-box-header">
|
|
|
|
<div class="gf-box-title">
|
2015-01-08 04:03:27 -06:00
|
|
|
<i class="fa fa-eye"></i>
|
2014-08-27 08:54:30 -05:00
|
|
|
Inspector
|
|
|
|
</div>
|
2014-04-03 15:22:38 -05:00
|
|
|
|
2014-08-27 08:54:30 -05:00
|
|
|
<div ng-model="editor.index" bs-tabs>
|
|
|
|
<div ng-repeat="tab in ['Request', 'Response', 'JS Error']" data-title="{{tab}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-04-03 15:22:38 -05:00
|
|
|
|
2015-11-13 02:36:52 -06:00
|
|
|
<button class="gf-box-header-close-btn" ng-click="dismiss();">
|
|
|
|
<i class="fa fa-remove"></i>
|
|
|
|
</button>
|
2014-08-27 08:54:30 -05:00
|
|
|
</div>
|
2014-04-03 15:22:38 -05:00
|
|
|
|
2015-02-02 01:34:54 -06:00
|
|
|
<div class="gf-box-body">
|
2014-04-03 15:22:38 -05:00
|
|
|
|
2014-08-27 08:54:30 -05:00
|
|
|
<div ng-if="editor.index == 0">
|
|
|
|
<h5>Request details</h5>
|
|
|
|
<table class="table table-striped small inspector-request-table">
|
|
|
|
<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
|
|
|
|
2014-08-27 08:54:30 -05:00
|
|
|
<h5>Request parameters</h5>
|
|
|
|
<table class="table table-striped small inspector-request-table">
|
|
|
|
<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>
|
|
|
|
<pre>
|
|
|
|
{{stack_trace}}
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2013-07-30 16:58:45 -05:00
|
|
|
</div>
|
2014-08-27 08:54:30 -05:00
|
|
|
|