mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: fixed failing test
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
exports[`CollorPalette renders correctly 1`] = `
|
exports[`CollorPalette renders correctly 1`] = `
|
||||||
<div
|
<div
|
||||||
className="empty-list-cta p-t-2 p-b-1"
|
className="empty-list-cta"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="empty-list-cta__title"
|
className="empty-list-cta__title"
|
||||||
|
|||||||
@@ -69,6 +69,10 @@ export class AnnotationsEditorCtrl {
|
|||||||
this.reset();
|
this.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
backToList() {
|
||||||
|
this.mode = 'list';
|
||||||
|
}
|
||||||
|
|
||||||
add() {
|
add() {
|
||||||
this.annotations.push(this.currentAnnotation);
|
this.annotations.push(this.currentAnnotation);
|
||||||
this.reset();
|
this.reset();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
<div ng-controller="AnnotationsEditorCtrl">
|
<div ng-controller="AnnotationsEditorCtrl">
|
||||||
<h3 class="dashboard-settings__header">
|
<h3 class="dashboard-settings__header">
|
||||||
<a ng-click="ctrl.setMode('list')">Annotations</a>
|
<a ng-click="ctrl.backToList()">Annotations</a>
|
||||||
<span ng-show="ctrl.mode === 'new'">> New</span>
|
<span ng-show="ctrl.mode === 'new'">> New</span>
|
||||||
<span ng-show="ctrl.mode === 'edit'">> Edit</span>
|
<span ng-show="ctrl.mode === 'edit'">> Edit</span>
|
||||||
</h3>
|
</h3>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
<a type="button" class="btn btn-success" ng-click="ctrl.setupNew();"><i class="fa fa-plus" ></i> New</a>
|
<a type="button" class="btn btn-success" ng-click="ctrl.setupNew();"><i class="fa fa-plus" ></i> New</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="filter-table">
|
<table class="filter-table filter-table--hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Query name</th>
|
<th>Query name</th>
|
||||||
|
|||||||
Reference in New Issue
Block a user