浏览代码

fix: fixed failing test

Torkel Ödegaard 8 年之前
父节点
当前提交
a682475152

+ 1 - 1
public/app/core/components/EmptyListCTA/__snapshots__/EmptyListCTA.jest.tsx.snap

@@ -2,7 +2,7 @@
 
 exports[`CollorPalette renders correctly 1`] = `
 <div
-  className="empty-list-cta p-t-2 p-b-1"
+  className="empty-list-cta"
 >
   <div
     className="empty-list-cta__title"

+ 4 - 0
public/app/features/annotations/editor_ctrl.ts

@@ -69,6 +69,10 @@ export class AnnotationsEditorCtrl {
     this.reset();
   }
 
+  backToList() {
+    this.mode = 'list';
+  }
+
   add() {
     this.annotations.push(this.currentAnnotation);
     this.reset();

+ 2 - 2
public/app/features/annotations/partials/editor.html

@@ -1,7 +1,7 @@
 
 <div ng-controller="AnnotationsEditorCtrl">
 	<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'">&gt; New</span>
 		<span ng-show="ctrl.mode === 'edit'">&gt; Edit</span>
 	</h3>
@@ -32,7 +32,7 @@
 			<a type="button" class="btn btn-success" ng-click="ctrl.setupNew();"><i class="fa fa-plus" ></i> New</a>
 		</div>
 
-		<table class="filter-table">
+		<table class="filter-table filter-table--hover">
 			<thead>
 				<tr>
 					<th>Query name</th>