admin: disable revoke button when already revoked

This commit is contained in:
nemunaire 2018-02-02 20:27:57 +01:00
parent fc456a41f2
commit 3ed8c619b1
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
<td>{{ certificate.revoked }}</td>
<td>
<a type="button" class="btn btn-sm btn-success" href="api/certs/{{ certificate.id }}" target="_self">Télécharger</a>
<button type="button" class="btn btn-sm btn-danger" data-toggle="modal" data-target="#revokeModal" data-certificate="{{ certificate.id }}">Révoquer</button>
<button type="button" class="btn btn-sm btn-danger" data-toggle="modal" data-target="#revokeModal" data-certificate="{{ certificate.id }}" ng-class="{disabled: certificate.revoked}">Révoquer</button>
</td>
</tr>
</tbody>