Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const appDependencies = {
core: coreMock.createSetup(),
services,
config: {
slmUi: { enabled: true },
slm_ui: { enabled: true },
},
plugins: {},
};
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/snapshot_restore/public/application/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { useConfig } from './app_context';
import { AuthorizationContext, WithPrivileges, NotAuthorizedSection } from './lib/authorization';

export const App: React.FunctionComponent = () => {
const { slmUi } = useConfig();
const { slm_ui: slmUi } = useConfig();
const { apiError } = useContext(AuthorizationContext);

const sections: Section[] = ['repositories', 'snapshots', 'restore_status'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const SnapshotRestoreHome: React.FunctionComponent<RouteComponentProps<Ma
},
history,
}) => {
const { slmUi } = useConfig();
const { slm_ui: slmUi } = useConfig();

const tabs: Array<{
id: Section;
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/snapshot_restore/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

export interface ClientConfigType {
slmUi: { enabled: boolean };
slm_ui: { enabled: boolean };
}
2 changes: 1 addition & 1 deletion x-pack/plugins/snapshot_restore/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { schema, TypeOf } from '@kbn/config-schema';

export const configSchema = schema.object({
enabled: schema.boolean({ defaultValue: true }),
slmUi: schema.object({
slm_ui: schema.object({
enabled: schema.boolean({ defaultValue: true }),
}),
});
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/snapshot_restore/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export const plugin = (ctx: PluginInitializerContext) => new SnapshotRestoreServ
export const config: PluginConfigDescriptor<SnapshotRestoreConfig> = {
schema: configSchema,
exposeToBrowser: {
slmUi: true,
slm_ui: true,
},
};
2 changes: 1 addition & 1 deletion x-pack/plugins/snapshot_restore/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class SnapshotRestoreServerPlugin implements Plugin<void, void, any, any>
config: {
isSecurityEnabled: security !== undefined,
isCloudEnabled: cloud !== undefined && cloud.isCloudEnabled,
isSlmEnabled: pluginConfig.slmUi.enabled,
isSlmEnabled: pluginConfig.slm_ui.enabled,
},
lib: {
isEsError,
Expand Down