Power mode: add info when running VM virtualized

This commit is contained in:
bergware
2023-12-27 23:42:26 +01:00
parent e1e912586f
commit 0c81e852f9
2 changed files with 6 additions and 0 deletions

View File

@@ -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)_:
&nbsp;
: <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>

View File

@@ -1 +1,2 @@
input[type=radio]{margin:0 10px 0 0}
div#vm{display:none;margin-left:35%}