feat(alerting): test results look better

This commit is contained in:
Torkel Ödegaard
2016-07-21 13:57:19 +02:00
parent f6a160b270
commit 3ad38eefd2
9 changed files with 469 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ export class AlertTabCtrl {
};
return this.backendSrv.post('/api/alerts/test', payload).then(res => {
this.testResult = angular.toJson(res, true);
this.testResult = res;
this.testing = false;
});
}

View File

@@ -132,9 +132,7 @@
</div>
<div class="gf-form-group" ng-if="ctrl.testResult">
<pre>
{{ctrl.testResult}}
</pre>
<json-tree root-name="result" object="ctrl.testResult" start-expanded="true"></json-tree>
</div>
<div class="gf-form-group" ng-if="!ctrl.alert.enabled">