diff --git a/modules/datastore/src/Form/DashboardForm.php b/modules/datastore/src/Form/DashboardForm.php index f339dbb162..63c18aa693 100644 --- a/modules/datastore/src/Form/DashboardForm.php +++ b/modules/datastore/src/Form/DashboardForm.php @@ -17,8 +17,6 @@ /** * Datastore Import Dashboard form. - * - * @package Drupal\datastore */ class DashboardForm extends FormBase { use StringTranslationTrait; @@ -414,7 +412,7 @@ protected function buildRevisionRow(array $rev, int $resourceCount, string $harv // here. $moderation_class = $rev['moderation_state']; if ($moderation_class == 'hidden') { - $moderation_class = 'registered'; + $moderation_class = 'published-hidden'; } return [ [ @@ -428,12 +426,12 @@ protected function buildRevisionRow(array $rev, int $resourceCount, string $harv ], [ 'rowspan' => $resourceCount, - 'class' => $rev['moderation_state'], + 'class' => $moderation_class, 'data' => [ '#theme' => 'datastore_dashboard_revision_cell', '#revision_id' => $rev['revision_id'], '#modified' => $this->dateFormatter->format(strtotime($rev['modified_date_dkan']), 'short'), - '#moderation_state' => $moderation_class, + '#moderation_state' => $rev['moderation_state'], ], ], [ diff --git a/modules/harvest/css/style.css b/modules/harvest/css/style.css index 7363f041de..3392e62370 100644 --- a/modules/harvest/css/style.css +++ b/modules/harvest/css/style.css @@ -9,6 +9,15 @@ table.dashboard-datasets td.done background-color: #f3faef; } +/** + * Hidden. + */ +table.dashboard-datasets td.published-hidden +{ + color: #325e1c; + background-color: #edf3e8; +} + /** * Waiting. */