Fixes for ZFS subpools

This commit is contained in:
bergware
2023-11-01 20:01:27 +01:00
parent b7b7d2b01c
commit 0be84e8fa0

View File

@@ -16,6 +16,7 @@ Tag="database"
?>
<script>
String.prototype.no_tilde = function(){return this.replace('~','_-_');}
String.prototype.master = function(){return this.split('~')[0];}
function toggle_state(device,name,action) {
var button = null;
@@ -28,7 +29,7 @@ function toggle_state(device,name,action) {
$('[id^="dev-parity"]').removeClass('fa-circle fa-square fa-warning fa-times').addClass('fa-refresh fa-spin');
$('[id^="dev-disk"]').removeClass('fa-circle fa-square fa-warning fa-times').addClass('fa-refresh fa-spin');
} else {
$('[id^="dev-'+group.no_tilde()+'"]').removeClass('fa-circle fa-square fa-warning fa-times').addClass('fa-refresh fa-spin');
$('[id^="dev-'+group.master()+'"]').removeClass('fa-circle fa-square fa-warning fa-times').addClass('fa-refresh fa-spin');
}
}
} else if (device!='Clear') {