Add Graylog settings (#10740)

* Add Graylog settings
Fix order of settings
Don't clobber text input when validation fails
fixed spacing for setting reset/undo buttons and help

* fix style
This commit is contained in:
Tony Murray
2019-10-26 00:29:47 +00:00
committed by GitHub
parent e6423852ef
commit 9b4406ec9e
11 changed files with 196 additions and 52 deletions

View File

@ -12,15 +12,17 @@ class SettingsController extends Controller
/**
* Display a listing of the resource.
*
* @param DynamicConfig $dynamicConfig
* @param string $tab
* @param string $section
* @return \Illuminate\Http\Response
*/
public function index($tab = 'global', $section = '')
public function index(DynamicConfig $dynamicConfig, $tab = 'global', $section = '')
{
$data = [
'active_tab' => $tab,
'active_section' => $section,
'groups' => $dynamicConfig->getGrouped()->forget('global'),
];
return view('settings.index', $data);