mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 19:00:54 -06:00
fix(alerting): fix spacing
This commit is contained in:
parent
495404ef73
commit
2ce9d4571c
@ -78,12 +78,14 @@ export class AlertSrv {
|
||||
scope.text2 = payload.text2;
|
||||
scope.confirmText = payload.confirmText;
|
||||
scope.confirmTextRequired = payload.confirmText !== "";
|
||||
|
||||
scope.onConfirm = function() {
|
||||
if (!scope.confirmTextRequired || (scope.confirmTextRequired && scope.confirmTextValid)) {
|
||||
payload.onConfirm();
|
||||
scope.dismiss();
|
||||
}
|
||||
};
|
||||
|
||||
scope.updateConfirmText = function(value) {
|
||||
scope.confirmInput = value;
|
||||
scope.confirmTextValid = scope.confirmText === scope.confirmInput;
|
||||
|
@ -20,17 +20,17 @@
|
||||
</thead>
|
||||
<tr ng-repeat="alert in ctrl.alerts">
|
||||
<td>
|
||||
<a href="/alerts/{{alert.id}}/states">
|
||||
<a href="alerts/{{alert.id}}/states">
|
||||
{{alert.title}}
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<a href="/alerts/{{alert.id}}/states">
|
||||
<a href="alerts/{{alert.id}}/states">
|
||||
<i class="icon-gf {{alert.iconCss}}"></i>
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<a href="/dashboard/{{alert.dashboardUri}}?panelId={{alert.panelId}}&fullscreen&edit" class="btn btn-inverse btn-small">
|
||||
<a href="dashboard/{{alert.dashboardUri}}?panelId={{alert.panelId}}&fullscreen&edit" class="btn btn-inverse btn-small">
|
||||
<i class="fa fa-edit"></i>
|
||||
edit
|
||||
</a>
|
||||
@ -39,4 +39,3 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
<div class="modal-content-confirm-text" ng-if="confirmTextRequired">
|
||||
<span><i class="fa fa-warning"></i>Please type in the name of the dashboard to confirm.</span>
|
||||
<span><i class="fa fa-warning"></i> Please type in the name of the dashboard to confirm.</span>
|
||||
<input type="text" class="gf-form-input width-16 {{confirmInputStyle}}" style="display: inline-block;" ng-model="confirmInput" ng-change="updateConfirmText(confirmInput)">
|
||||
</div>
|
||||
|
||||
@ -34,4 +34,3 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -173,4 +173,3 @@
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user