Просмотр исходного кода

tech(notifications): remove unused filter markup

bergquist 9 лет назад
Родитель
Сommit
91b180168e

+ 0 - 5
public/app/features/alerting/notification_edit_ctrl.ts

@@ -7,7 +7,6 @@ import config from 'app/core/config';
 
 export class AlertNotificationEditCtrl {
   model: any;
-  showTest: boolean = false;
   testSeverity: string = "critical";
 
   /** @ngInject */
@@ -53,10 +52,6 @@ export class AlertNotificationEditCtrl {
     this.model.settings = {};
   }
 
-  toggleTest() {
-    this.showTest = !this.showTest;
-  }
-
   testNotification() {
     var payload = {
       name: this.model.name,

+ 1 - 4
public/app/features/alerting/partials/notification_edit.html

@@ -74,10 +74,7 @@
 			<div class="gf-form width-6">
 				<button ng-click="ctrl.save()" class="btn btn-success">Save</button>
 			</div>
-			<div class="gf-form width-8">
-				<button ng-click="ctrl.toggleTest()" class="btn btn-secondary">Test</button>
-			</div>
-			<div class="gf-form width-20" ng-show="ctrl.showTest">
+			<div class="gf-form width-20">
 			<div class="gf-form" ng-show="ctrl.showTest">
 				<button ng-click="ctrl.testNotification()" class="btn btn-secondary">Send</button>
 			</div>