kibana/x-pack/plugins/spaces/server/ui_settings.ts
2024-10-15 07:18:30 -05:00

24 lines
694 B
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { schema } from '@kbn/config-schema';
import type { UiSettingsParams } from '@kbn/core/types';
import { SHOW_SPACE_SOLUTION_TOUR_SETTING } from '../common/constants';
/**
* uiSettings definitions for Spaces
*/
export const getUiSettings = (): Record<string, UiSettingsParams> => {
return {
[SHOW_SPACE_SOLUTION_TOUR_SETTING]: {
schema: schema.boolean(),
readonly: true,
readonlyMode: 'ui',
},
};
};