Commit 48371b7e authored by Francesc Guasch's avatar Francesc Guasch
Browse files

fix(frontend): hibernate button was always disabled

parent 23aada5a
......@@ -25,7 +25,7 @@
<div ng-show="!showmachine || showmachine.can_hibernate">
<button type="button" class="btn btn-warning btn-sm"
ng-click="action('machine','hibernate',showmachine.id)"
ng-disabled="showmachine || !showmachine.is_active"
ng-disabled="showmachine && !showmachine.is_active"
title="<%=l 'Hibernate' %>">
<i class="fa fa-pause"></i>
</button>
......
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