Skip to content

Commit 6309aa3

Browse files
stonebuzzbtry
authored andcommitted
feat(dashboard): enable label
1 parent c38e1d9 commit 6309aa3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

css/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,3 +1032,7 @@ a.plugin_formcreator_formTile_title {
10321032
max-width: 400px;
10331033
}
10341034
}
1035+
1036+
.formcreator_dashboard_container .dashboard .big-number .label {
1037+
font-size: 12px !important;
1038+
}

hook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ function plugin_formcreator_hook_dashboard_cards($cards) {
678678
'args' => [
679679
'params' => [
680680
'status' => $key,
681-
'label' => "", //$label
681+
'label' => $label,
682682
]
683683
],
684684
'cache' => false,
@@ -732,4 +732,4 @@ function plugin_formcreator_hook_update_user(CommonDBTM $item) {
732732
unset($item->input['default_dashboard_mini_ticket']);
733733
}
734734
}
735-
}
735+
}

inc/common.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,9 @@ public static function showMiniDashboard(): void {
839839

840840
if (PluginFormcreatorEntityconfig::getUsedConfig('is_dashboard_visible', Session::getActiveEntity()) == PluginFormcreatorEntityconfig::CONFIG_DASHBOARD_VISIBLE) {
841841
$dashboard = new Glpi\Dashboard\Grid('plugin_formcreator_issue_counters', 33, 0, 'mini_core');
842+
echo "<div class='formcreator_dashboard_container'>";
842843
$dashboard->show(true);
844+
echo "</div>";
843845
}
844846
}
845847
}

0 commit comments

Comments
 (0)