Fixed marker in JobsQueueViewer

This commit is contained in:
Paolo
2020-03-06 14:30:52 +01:00
parent 6b0bf89592
commit 8363f0d26c
2 changed files with 7 additions and 4 deletions
@@ -25,6 +25,9 @@ class JobsQueueViewer extends Auth_Controller
// Loads WidgetLib
$this->load->library('WidgetLib');
// Loads JobsQueueLib
$this->load->library('JobsQueueLib');
// Loads phrases system
$this->loadPhrases(
array(
@@ -35,22 +35,22 @@
$mark = '';
if ($datasetRaw->Status == 'Failed')
if ($datasetRaw->Status == JobsQueueLib::STATUS_FAILED)
{
$mark = 'text-red';
}
if ($datasetRaw->Status == 'Done')
if ($datasetRaw->Status == JobsQueueLib::STATUS_DONE)
{
$mark = 'text-green';
}
if ($datasetRaw->Status == 'Running')
if ($datasetRaw->Status == JobsQueueLib::STATUS_RUNNING)
{
$mark = 'text-orange';
}
if ($datasetRaw->Status == 'New')
if ($datasetRaw->Status == JobsQueueLib::STATUS_NEW)
{
$mark = 'text-info';
}