alertlist: toggle play/pause button

closes #9355
This commit is contained in:
bergquist 2017-09-27 10:49:39 +02:00
parent 0e5e2f3fb9
commit 5373a6027c

View File

@ -1,18 +1,18 @@
<navbar model="ctrl.navModel"></navbar> <navbar model="ctrl.navModel"></navbar>
<div class="page-container" > <div class="page-container" >
<div class="page-header"> <div class="page-header">
<h1>Alert List</h1> <h1>Alert List</h1>
<a class="btn btn-inverse" ng-click="ctrl.openHowTo()"> <a class="btn btn-inverse" ng-click="ctrl.openHowTo()">
<i class="fa fa-info-circle"></i> <i class="fa fa-info-circle"></i>
How to add an alert How to add an alert
</a> </a>
<a class="btn btn-inverse" href="alerting/notifications" > <a class="btn btn-inverse" href="alerting/notifications" >
<i class="fa fa-cog"></i> <i class="fa fa-cog"></i>
Configure notifications Configure notifications
</a> </a>
</div> </div>
<div class="gf-form-group"> <div class="gf-form-group">
<div class="gf-form-inline"> <div class="gf-form-inline">
@ -34,9 +34,10 @@
<div class="card-item-header"> <div class="card-item-header">
<div class="card-item-type"> <div class="card-item-type">
<a class="card-item-cog" bs-tooltip="'Pausing an alert rule prevents it from executing'" ng-click="ctrl.pauseAlertRule(alert.id)"> <a class="card-item-cog" bs-tooltip="'Pausing an alert rule prevents it from executing'" ng-click="ctrl.pauseAlertRule(alert.id)">
<i class="fa fa-pause"></i> <i ng-show="alert.state !== 'paused'" class="fa fa-pause"></i>
</a> <i ng-show="alert.state === 'paused'" class="fa fa-play"></i>
<a class="card-item-cog" href="dashboard/{{alert.dashboardUri}}?panelId={{alert.panelId}}&fullscreen&edit&tab=alert" bs-tooltip="'Edit alert rule'"> </a>
<a class="card-item-cog" href="dashboard/{{alert.dashboardUri}}?panelId={{alert.panelId}}&fullscreen&edit&tab=alert" bs-tooltip="'Edit alert rule'">
<i class="icon-gf icon-gf-settings"></i> <i class="icon-gf icon-gf-settings"></i>
</a> </a>
</div> </div>