default port group in Settings (#13175)

* default port group in Settings

* .

* wrap query with try catch

* update config schema

* change to select2

* .

* .

* inject no default port group choice

* Paginator

* .
This commit is contained in:
SourceDoctor
2021-09-03 15:58:09 +02:00
committed by GitHub
parent 4f50c3c05d
commit ada7bae84c
5 changed files with 39 additions and 13 deletions

View File

@@ -26,7 +26,6 @@
namespace App\Http\Controllers\Select;
use App\Models\PollerGroup;
use Illuminate\Support\Str;
class PollerGroupController extends SelectController
{
@@ -52,15 +51,4 @@ class PollerGroupController extends SelectController
return parent::formatResponse($paginator);
}
private function includeGeneral(): bool
{
if (request()->has('id') && request('id') !== 0) {
return false;
} elseif (request()->has('term') && ! Str::contains('general', strtolower(request('term')))) {
return false;
}
return true;
}
}