Skip to content

Commit

Permalink
wip: disable machine setting when global disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Jan 30, 2023
1 parent f3fd73d commit 0af55a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/main/vm_options.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
</div>
<div class="col-lg-2">
<input type="checkbox" ng-model="new_auto_compact" name="auto_compact"
ng-disabled="<%= !$USER->is_admin %>"
ng-disabled="<%= !$USER->is_admin || !$auto_compact %>"
ng-true-value="1" ng-false-value="0"
ng-change="set_bool('auto_compact',new_auto_compact)"
>
Expand Down

0 comments on commit 0af55a1

Please sign in to comment.