mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 23:20:35 -06:00
Power mode: add info when running VM virtualized
This commit is contained in:
@@ -40,6 +40,9 @@ $(function(){
|
||||
$('input[type=radio]').each(function(){
|
||||
if ($(this).prop('disabled')) $(this).next('span').html(" <i>(_(unavailable)_)</i>");
|
||||
});
|
||||
<?if (exec("lsblk -Ano mountpoint,label|grep -Pom1 '^/boot +\K.+'") != 'UNRAID'):?>
|
||||
$('#vm').show();
|
||||
<?endif;?>
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -61,3 +64,5 @@ _(Change power mode)_:
|
||||
|
||||
: <input type="submit" name="#apply" value="_(Apply)_" disabled><input type="button" value="_(Done)_" onclick="done()">
|
||||
</form>
|
||||
|
||||
<div id="vm" class="notice">_(When running Unraid virtualized, there are no available power modes)_</div>
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
input[type=radio]{margin:0 10px 0 0}
|
||||
div#vm{display:none;margin-left:35%}
|
||||
|
||||
Reference in New Issue
Block a user