mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
* Create fixtures for lookup tables. * Make `LookupTableStore` a singleton store and unify the way we export `LookupTableStore` and `LookupTableActions`. * Only disable search button when a parameter is required and needs a binding, but has no binding. * Only display missing parameter form while opening search page when parameter is required and needs a bindings. * Fixing checks if parameter is required. * Creating fixture for parameter. * Creating separate component for lookup table parameter form fields. * Smaller improvement to make it easier to test lookup table related functionality. * Do not create empty parameter binding when creating `LookupTableParameter`. Lookup table parameter do not have a binding because its value is being defined by the corresponding lookup table. * Define more generic help for lookup table parameter form.. * Improving import path. * Fixing linter warnings. * Fixing linter warnings. * Make `LookupTableActions` singleton actions. With this change we are fixing a bug which made it impossible to get the actions using the `CombinedProvider`. * Using correct singleton key for lookup table actions
22 lines
890 B
TypeScript
22 lines
890 B
TypeScript
/*
|
|
* Copyright (C) 2020 Graylog, Inc.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the Server Side Public License, version 1,
|
|
* as published by MongoDB, Inc.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* Server Side Public License for more details.
|
|
*
|
|
* You should have received a copy of the Server Side Public License
|
|
* along with this program. If not, see
|
|
* <http://www.mongodb.com/licensing/server-side-public-license>.
|
|
*/
|
|
|
|
import ValueParameter from 'views/logic/parameters/ValueParameter';
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export const valueParameter = ValueParameter.create('paraemterName', 'Parameter Title', '', 'any', undefined, false);
|