mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[DX] Upgrade prettier to v2.4.0 (#112359)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
parent
f1e9668aa2
commit
4681a80317
2937 changed files with 28631 additions and 30518 deletions
|
@ -9,23 +9,25 @@ import { extractQueryParams } from '../../../shared_imports';
|
|||
import { getRouter } from '../../services';
|
||||
import { OPEN_DETAIL_PANEL, CLOSE_DETAIL_PANEL } from '../action_types';
|
||||
|
||||
export const openDetailPanel = ({ name }) => (dispatch) => {
|
||||
const { history } = getRouter();
|
||||
const search = history.location.search;
|
||||
const { cluster: clusterName } = extractQueryParams(search);
|
||||
export const openDetailPanel =
|
||||
({ name }) =>
|
||||
(dispatch) => {
|
||||
const { history } = getRouter();
|
||||
const search = history.location.search;
|
||||
const { cluster: clusterName } = extractQueryParams(search);
|
||||
|
||||
if (clusterName !== name) {
|
||||
// Allow the user to share a deep link to this job.
|
||||
history.replace({
|
||||
search: `?cluster=${name}`,
|
||||
if (clusterName !== name) {
|
||||
// Allow the user to share a deep link to this job.
|
||||
history.replace({
|
||||
search: `?cluster=${name}`,
|
||||
});
|
||||
}
|
||||
|
||||
dispatch({
|
||||
type: OPEN_DETAIL_PANEL,
|
||||
payload: { clusterName: name },
|
||||
});
|
||||
}
|
||||
|
||||
dispatch({
|
||||
type: OPEN_DETAIL_PANEL,
|
||||
payload: { clusterName: name },
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
export const closeDetailPanel = () => (dispatch) => {
|
||||
dispatch({
|
||||
|
|
|
@ -97,14 +97,16 @@ export const editCluster = (cluster) => async (dispatch) => {
|
|||
}
|
||||
};
|
||||
|
||||
export const startEditingCluster = ({ clusterName }) => (dispatch) => {
|
||||
dispatch(loadClusters());
|
||||
export const startEditingCluster =
|
||||
({ clusterName }) =>
|
||||
(dispatch) => {
|
||||
dispatch(loadClusters());
|
||||
|
||||
dispatch({
|
||||
type: EDIT_CLUSTER_START,
|
||||
payload: { clusterName },
|
||||
});
|
||||
};
|
||||
dispatch({
|
||||
type: EDIT_CLUSTER_START,
|
||||
payload: { clusterName },
|
||||
});
|
||||
};
|
||||
|
||||
export const stopEditingCluster = () => (dispatch) => {
|
||||
// Load the clusters to refresh the one we just edited.
|
||||
|
|
|
@ -22,7 +22,8 @@ export interface RemoteClustersPluginSetup {
|
|||
}
|
||||
|
||||
export class RemoteClustersUIPlugin
|
||||
implements Plugin<RemoteClustersPluginSetup, void, Dependencies, any> {
|
||||
implements Plugin<RemoteClustersPluginSetup, void, Dependencies, any>
|
||||
{
|
||||
constructor(private readonly initializerContext: PluginInitializerContext) {}
|
||||
|
||||
setup(
|
||||
|
|
|
@ -26,7 +26,8 @@ export interface RemoteClustersPluginSetup {
|
|||
}
|
||||
|
||||
export class RemoteClustersServerPlugin
|
||||
implements Plugin<RemoteClustersPluginSetup, void, any, any> {
|
||||
implements Plugin<RemoteClustersPluginSetup, void, any, any>
|
||||
{
|
||||
licenseStatus: LicenseStatus;
|
||||
log: Logger;
|
||||
config: ConfigType;
|
||||
|
|
|
@ -74,11 +74,10 @@ export const register = (deps: RouteDependencies): void => {
|
|||
try {
|
||||
const body = serializeCluster({ name, hasDeprecatedProxySetting });
|
||||
|
||||
const {
|
||||
body: updateClusterResponse,
|
||||
} = await clusterClient.asCurrentUser.cluster.putSettings({
|
||||
body,
|
||||
});
|
||||
const { body: updateClusterResponse } =
|
||||
await clusterClient.asCurrentUser.cluster.putSettings({
|
||||
body,
|
||||
});
|
||||
const acknowledged = get(updateClusterResponse, 'acknowledged');
|
||||
const cluster = get(updateClusterResponse, `persistent.cluster.remote.${name}`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue