|
@@ -92,6 +92,8 @@ JS
|
|
|
|
|
|
$this->setupScripts();
|
|
|
|
|
|
+ $onlyScopes = ((!$filters || $this->grid->option('show_filter') === false) && !$scopres->isEmpty()) ? true : false;
|
|
|
+
|
|
|
$variables = [
|
|
|
'scopes' => $scopres,
|
|
|
'current_label' => $this->getCurrentScopeLabel(),
|
|
@@ -99,6 +101,7 @@ JS
|
|
|
'btn_class' => $this->getElementClassName(),
|
|
|
'expand' => $filter->expand,
|
|
|
'show_filter_text' => true,
|
|
|
+ 'only_scopes' => $onlyScopes,
|
|
|
];
|
|
|
|
|
|
return view($this->view, $variables)->render();
|