From b1d1b325793b51f54727e6c3a174d4dbdc77a520 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 19 Oct 2018 16:09:33 -0400 Subject: [PATCH] moving the buttons into the header of the summary dashboard widget --- setup/adminHooks.php | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 1663a68..35ee385 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -89,6 +89,16 @@ add_filter( $content = [ 'title' => 'Packaging', + 'widgetButtons' => [ + [ + 'id' => 'add-package', + 'content' => 'Add', + 'url' => $packagingIndexPage . "&option=add", + 'classes' => '', + 'styles' => '', + 'data' => '' + ] + ], 'components' => [ [ 'id' => 'quickLinks', @@ -109,18 +119,6 @@ add_filter( ] ], ], - [ - 'id' => 'topButtons', - 'order' => 0, - 'template' => 'buttons', - 'buttons' => [ - 'add-package' => [ - 'content' => 'Add New', - 'url' => $packagingIndexPage . "&option=add", - 'classes' => '', - ], - ], - ], [ 'id' => 'entityAmount', 'title' => 'Number of Packages', -- 2.17.1