Skip to content

Commit

Permalink
feat(dashboard): enable label
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz authored and btry committed May 9, 2022
1 parent c38e1d9 commit 6309aa3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1032,3 +1032,7 @@ a.plugin_formcreator_formTile_title {
max-width: 400px;
}
}

.formcreator_dashboard_container .dashboard .big-number .label {
font-size: 12px !important;
}
4 changes: 2 additions & 2 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ function plugin_formcreator_hook_dashboard_cards($cards) {
'args' => [
'params' => [
'status' => $key,
'label' => "", //$label
'label' => $label,
]
],
'cache' => false,
Expand Down Expand Up @@ -732,4 +732,4 @@ function plugin_formcreator_hook_update_user(CommonDBTM $item) {
unset($item->input['default_dashboard_mini_ticket']);
}
}
}
}
2 changes: 2 additions & 0 deletions inc/common.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,9 @@ public static function showMiniDashboard(): void {

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

0 comments on commit 6309aa3

Please sign in to comment.