fixed languages

This commit is contained in:
Edward Yang 2022-08-05 19:11:03 +08:00
parent ba53d3f844
commit 8a2d39d6c9
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class Sidebar extends Component
} }
} }
if (Str::startsWith($routeName, ['settings.', 'admin_users.', 'admin_roles.', 'plugins.', 'tax_classes', 'tax_rates', 'regions', 'currencies'])) { if (Str::startsWith($routeName, ['settings.', 'admin_users.', 'admin_roles.', 'plugins.', 'tax_classes', 'tax_rates', 'regions', 'currencies', 'languages'])) {
$routes = $this->getSettingSubRoutes(); $routes = $this->getSettingSubRoutes();
foreach ($routes as $route) { foreach ($routes as $route) {
$this->addLink($route['route'], $route['icon'] ?? '', $this->equalRoute($route['route']), (bool)($route['blank'] ?? false)); $this->addLink($route['route'], $route['icon'] ?? '', $this->equalRoute($route['route']), (bool)($route['blank'] ?? false));
@ -176,7 +176,7 @@ class Sidebar extends Component
['route' => 'tax_classes.index', 'icon' => 'fa fa-tachometer-alt'], ['route' => 'tax_classes.index', 'icon' => 'fa fa-tachometer-alt'],
['route' => 'currencies.index', 'icon' => 'fa fa-tachometer-alt'], ['route' => 'currencies.index', 'icon' => 'fa fa-tachometer-alt'],
['route' => 'design.index', 'icon' => 'fa fa-tachometer-alt', 'blank' => true], ['route' => 'design.index', 'icon' => 'fa fa-tachometer-alt', 'blank' => true],
['route' => 'languages.index', 'icon' => 'fa fa-tachometer-alt', 'blank' => true], ['route' => 'languages.index', 'icon' => 'fa fa-tachometer-alt'],
]; ];
return hook_filter('sidebar.setting_routes', $routes); return hook_filter('sidebar.setting_routes', $routes);
} }