Commit 4908b810 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(frontend): show/hide requests

issue #1196
parent 7cbf3e4a
<div class="alert alert-light border-primary text-primary" role="alert" id="requests"
<div
ng-cloak="true"
ng-show="requests[0]"
ng-controler="requestsCtrl">
<h6 class="font-weight-bold">Requests</h6>
<button type="button" class="btn btn-primary btn-sm"
ng-click="show_requests = !show_requests"
>Requests
<span class="badge badge-warning" ng-hide="show_requests">{{requests.length}}</span>
<span class="badge badge-warning" ng-show="show_requests">hide</span>
</button>
<div ng-show="show_requests"
class="alert alert-light border-primary text-primary" role="alert" id="requests"
>
<div ng-repeat="request in requests">
<span class="badge badge-pill badge-light">{{request.date}} |</span>
{{request.command}}
......@@ -9,4 +18,5 @@
<i>{{request.status}}</i>
<span class="badge badge-pill badge-light">{{request.error}}</span>
</div>
</div>
</div>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment