Fix highlighting of default view

pull/108/head
Candid Dauth 2017-11-12 12:15:11 +01:00
rodzic a22ef8e6a5
commit aa743318f6
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -6,10 +6,10 @@
<div uib-alert class="alert-danger" ng-if="error">{{error.message || error}}</div> <div uib-alert class="alert-danger" ng-if="error">{{error.message || error}}</div>
<table class="table table-striped"> <table class="table table-striped">
<tbody> <tbody>
<tr ng-class="{success: view.id == padData.defaultView.id}" ng-repeat="view in client.views"> <tr ng-class="{success: view.id == client.padData.defaultView.id}" ng-repeat="view in client.views">
<td><a href="javascript:" ng-click="display(view)">{{view.name}}</a></td> <td><a href="javascript:" ng-click="display(view)">{{view.name}}</a></td>
<td class="td-buttons"> <td class="td-buttons">
<button type="button" ng-hide="view.id == padData.defaultView.id" ng-click="makeDefault(view)" class="btn btn-default">Make default</button> <button type="button" ng-hide="view.id == client.padData.defaultView.id" ng-click="makeDefault(view)" class="btn btn-default">Make default</button>
<button type="button" ng-click="confirm('Do you really want to delete the view “' + view.name + '”?') && delete(view)" class="btn btn-default">Delete</button> <button type="button" ng-click="confirm('Do you really want to delete the view “' + view.name + '”?') && delete(view)" class="btn btn-default">Delete</button>
</td> </td>
</tr> </tr>