Skip to content

Commit

Permalink
Add validation rule to list widgets and remove dashboard nav item
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed Jun 19, 2023
1 parent 087d659 commit 6020f7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
19 changes: 3 additions & 16 deletions Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,22 +158,9 @@ public function registerNavigation()
'icon' => 'fa-chart-pie',
'title' => lang('lang:thoughtco.reports::default.text_title'),
'priority' => 35,
'child' => [
'dashboard' => [
'priority' => 5,
'class' => 'pages',
'href' => admin_url('thoughtco/reports/dashboard'),
'title' => lang('lang:thoughtco.reports::default.text_dashboard_title'),
'permission' => 'Thoughtco.Reports.View',
],
'builder' => [
'priority' => 5,
'class' => 'pages',
'href' => admin_url('thoughtco/reports/builder'),
'title' => lang('lang:thoughtco.reports::default.text_builder_title'),
'permission' => 'Thoughtco.Reports.View',
],
],
'class' => 'pages',
'href' => admin_url('thoughtco/reports/builder'),
'permission' => 'Thoughtco.Reports.View',
],
];
}
Expand Down
1 change: 1 addition & 0 deletions widgets/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function defineProperties()
'default' => 'top_customers',
'type' => 'select',
'options' => $this->getContextOptions(),
'validationRule' => 'required|alpha_dash',
],
];
}
Expand Down

0 comments on commit 6020f7a

Please sign in to comment.