Hide management sections based on cluster/index privileges (#67791)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Larry Gregory 2020-09-14 09:30:47 -04:00 committed by GitHub
parent ebf877b91f
commit 2e34eb239f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
241 changed files with 7115 additions and 2497 deletions

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { i18n } from '@kbn/i18n';
import { FeatureConfig } from '../common/feature';
import { KibanaFeatureConfig } from '../common';
export interface BuildOSSFeaturesParams {
savedObjectTypes: string[];
@ -368,10 +368,10 @@ export const buildOSSFeatures = ({ savedObjectTypes, includeTimelion }: BuildOSS
},
},
...(includeTimelion ? [timelionFeature] : []),
] as FeatureConfig[];
] as KibanaFeatureConfig[];
};
const timelionFeature: FeatureConfig = {
const timelionFeature: KibanaFeatureConfig = {
id: 'timelion',
name: 'Timelion',
order: 350,