mirror of
https://github.com/unraid/webgui.git
synced 2026-02-18 06:58:47 -06:00
fix: Present warning text for pool replacement devices (that they will be overwritten)
This commit is contained in:
@@ -184,7 +184,7 @@ function array_offline(&$disk, $pool='') {
|
||||
$text = "<span class='red-text'><em>"._('All existing data on this device will be OVERWRITTEN when array is Started')."</em></span>";
|
||||
if (_var($disk,'type')=='Cache') {
|
||||
if (!str_contains(_var($diks[$pool],'state'),'ERROR:')) {
|
||||
if (_var($diks[$pool],'state')!='NEW_ARRAY') {
|
||||
if (_var($disks[$pool],'state')!='NEW_ARRAY') {
|
||||
if (in_array(_var($disk,'status'),$status)) $warning = $text;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user