[FIX] Disable monitor option in workers page
This commit is contained in:
parent
d289b422f3
commit
4f01b277fb
@ -40,6 +40,7 @@ if ($user->isAuthenticated()) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$smarty->assign('DISABLE_IDLEWORKERNOTIFICATIONS', $setting->getValue('notifications_disable_idle_worker'));
|
||||||
$aWorkers = $worker->getWorkers($_SESSION['USERDATA']['id']);
|
$aWorkers = $worker->getWorkers($_SESSION['USERDATA']['id']);
|
||||||
if (!$aWorkers) $_SESSION['POPUP'][] = array('CONTENT' => 'You have no workers configured', 'TYPE' => 'errormsg');
|
if (!$aWorkers) $_SESSION['POPUP'][] = array('CONTENT' => 'You have no workers configured', 'TYPE' => 'errormsg');
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,7 @@
|
|||||||
<th align="left">Worker Login</th>
|
<th align="left">Worker Login</th>
|
||||||
<th align="left">Worker Password</th>
|
<th align="left">Worker Password</th>
|
||||||
<th align="center">Active</th>
|
<th align="center">Active</th>
|
||||||
{if $GLOBAL.config.disable_notifications != 1}<th align="center">Monitor</th>{/if}
|
{if $GLOBAL.config.disable_notifications != 1 && $DISABLE_IDLEWORKERNOTIFICATIONS != 1}<th align="center">Monitor</th>{/if}
|
||||||
<th align="right">Khash/s</th>
|
<th align="right">Khash/s</th>
|
||||||
<th align="right">Difficulty</th>
|
<th align="right">Difficulty</th>
|
||||||
<th align="center" style="padding-right: 25px;">Action</th>
|
<th align="center" style="padding-right: 25px;">Action</th>
|
||||||
@ -51,7 +51,7 @@
|
|||||||
<td align="left"{if $WORKERS[worker].hashrate > 0} style="color: orange"{/if}>{$username.0|escape}.<input name="data[{$WORKERS[worker].id}][username]" value="{$username.1|escape}" size="10" required/></td>
|
<td align="left"{if $WORKERS[worker].hashrate > 0} style="color: orange"{/if}>{$username.0|escape}.<input name="data[{$WORKERS[worker].id}][username]" value="{$username.1|escape}" size="10" required/></td>
|
||||||
<td align="left"><input type="text" name="data[{$WORKERS[worker].id}][password]" value="{$WORKERS[worker].password|escape}" size="10" required></td>
|
<td align="left"><input type="text" name="data[{$WORKERS[worker].id}][password]" value="{$WORKERS[worker].password|escape}" size="10" required></td>
|
||||||
<td align="center"><i class="icon-{if $WORKERS[worker].hashrate > 0}ok{else}cancel{/if}"></i></td>
|
<td align="center"><i class="icon-{if $WORKERS[worker].hashrate > 0}ok{else}cancel{/if}"></i></td>
|
||||||
{if $GLOBAL.config.disable_notifications != 1}
|
{if $GLOBAL.config.disable_notifications != 1 && $DISABLE_IDLEWORKERNOTIFICATIONS != 1}
|
||||||
<td>
|
<td>
|
||||||
<span class="toggle">
|
<span class="toggle">
|
||||||
<label for="data[{$WORKERS[worker].id}][monitor]">
|
<label for="data[{$WORKERS[worker].id}][monitor]">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user