mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 09:39:58 -06:00
fix: MoverSettings move now button display
This commit is contained in:
@@ -27,6 +27,9 @@ $cron = explode(' ',$var['shareMoverSchedule']);
|
||||
$move = $cron[2]!='*' ? 3 : ($cron[4]!='*' ? 2 : (substr($cron[1],0,1)!='*' ? 1 : 0));
|
||||
$mode = ['Hourly','Daily','Weekly','Monthly'];
|
||||
$days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
|
||||
|
||||
$showMoverButton = $setup && $pool_devices;
|
||||
$moverRunning = file_exists('/var/run/mover.pid');
|
||||
?>
|
||||
<script>
|
||||
<? if ($setup == true):?>
|
||||
@@ -119,17 +122,12 @@ _(Mover logging)_:
|
||||
|
||||
<?endif;?>
|
||||
|
||||
: <span class="inline-block">
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" name="changeMover" value="_(Apply)_" disabled>
|
||||
<input type="button" value="_(Done)_" onclick="done()">
|
||||
<?if ($showMoverButton):?>
|
||||
<input type="submit" name="cmdStartMover" value="_(Move now)_"<?if ($moverRunning):?> disabled<?endif;?>>
|
||||
<?if ($moverRunning):?><span> _(Mover is running)_</span><?endif;?>
|
||||
<?endif;?>
|
||||
</span>
|
||||
<?if ($setup):?>
|
||||
<?if ($pool_devices):?>
|
||||
<?if (file_exists('/var/run/mover.pid')):?>
|
||||
<input type="submit" name="cmdStartMover" value="_(Move now)_" disabled> _(Mover is running)_
|
||||
<?else:?>
|
||||
<input type="submit" name="cmdStartMover" value="_(Move now)_">
|
||||
<?endif;?>
|
||||
<?endif;?>
|
||||
<?endif;?>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user