diff --git a/public/action/ad_dashboard_action.tsx b/public/action/ad_dashboard_action.tsx
index 417de3a9b..f8bfbb1db 100644
--- a/public/action/ad_dashboard_action.tsx
+++ b/public/action/ad_dashboard_action.tsx
@@ -14,7 +14,6 @@ import {
} from '../../../../src/plugins/ui_actions/public';
import { isReferenceOrValueEmbeddable } from '../../../../src/plugins/embeddable/public';
import { EuiIconType } from '@elastic/eui/src/components/icon/icon';
-import { isEmpty } from 'lodash';
import { VisualizeEmbeddable } from '../../../../src/plugins/visualizations/public';
import { isEligibleForVisLayers } from '../../../../src/plugins/vis_augmenter/public';
@@ -65,15 +64,13 @@ export const createADAction = ({
embeddable.parent &&
isDashboard(embeddable.parent) &&
vis !== undefined &&
- isEligibleForVisLayers(vis) &&
- !isEmpty((embeddable as VisualizeEmbeddable).visLayers)
+ isEligibleForVisLayers(vis)
);
},
execute: async ({ embeddable }: ActionContext) => {
if (!isReferenceOrValueEmbeddable(embeddable)) {
throw new IncompatibleActionError();
}
-
onClick({ embeddable });
},
});
diff --git a/public/components/FeatureAnywhereContextMenu/AssociatedDetectors/containers/AssociatedDetectors.tsx b/public/components/FeatureAnywhereContextMenu/AssociatedDetectors/containers/AssociatedDetectors.tsx
index 0829f4ec7..004c81d1a 100644
--- a/public/components/FeatureAnywhereContextMenu/AssociatedDetectors/containers/AssociatedDetectors.tsx
+++ b/public/components/FeatureAnywhereContextMenu/AssociatedDetectors/containers/AssociatedDetectors.tsx
@@ -305,16 +305,18 @@ function AssociatedDetectors({ embeddable, closeFlyout, setMode }) {
Visualization: {embeddableTitle}
-
- {
- setMode('existing');
- }}
- >
- Associate a detector
-
+
+
+ {
+ setMode('existing');
+ }}
+ >
+ Associate a detector
+
+
diff --git a/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/AddAnomalyDetector.tsx b/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/AddAnomalyDetector.tsx
index 849f27341..09098dcee 100644
--- a/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/AddAnomalyDetector.tsx
+++ b/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/AddAnomalyDetector.tsx
@@ -103,6 +103,7 @@ import { formikToDetectorName, visFeatureListToFormik } from './helpers';
import { AssociateExisting } from './AssociateExisting';
import { mountReactNode } from '../../../../../../src/core/public/utils';
import { FLYOUT_MODES } from '../AnywhereParentFlyout/constants';
+import { DetectorListItem } from '../../../../public/models/interfaces';
function AddAnomalyDetector({
embeddable,
@@ -206,9 +207,7 @@ function AddAnomalyDetector({
}
});
} else {
- notifications.toasts.addDanger(
- 'One or more features are required.'
- );
+ notifications.toasts.addDanger('One or more features are required.');
}
};
diff --git a/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/AssociateExisting/containers/AssociateExisting.tsx b/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/AssociateExisting/containers/AssociateExisting.tsx
index d8ee78d3c..cad7a7187 100644
--- a/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/AssociateExisting/containers/AssociateExisting.tsx
+++ b/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/AssociateExisting/containers/AssociateExisting.tsx
@@ -186,7 +186,11 @@ export function AssociateExisting(
View existing anomaly detectors across your system and add the
detector(s) to a dashboard and visualization.{' '}
-
+
Learn more
@@ -218,7 +222,7 @@ export function AssociateExisting(
}}
aria-label="Select an anomaly detector to associate"
isClearable
- singleSelection
+ singleSelection={{ asPlainText: true }}
placeholder="Search for an anomaly detector"
/>
) : (
@@ -238,7 +242,12 @@ export function AssociateExisting(
-
+
View detector page
diff --git a/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/helpers.tsx b/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/helpers.tsx
index 9bd6de0a8..685571e9f 100644
--- a/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/helpers.tsx
+++ b/public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/helpers.tsx
@@ -44,7 +44,7 @@ const getFeatureNameFromVisParams = (id, seriesParams) => {
});
const formattedFeatureName = name.data.label.replace(/[^a-zA-Z0-9-_]/g, '_');
- return formattedFeatureName
+ return formattedFeatureName;
};
function visAggregationToFormik(value) {
diff --git a/public/plugin.ts b/public/plugin.ts
index 83fd40eb0..86aeb1494 100644
--- a/public/plugin.ts
+++ b/public/plugin.ts
@@ -40,10 +40,7 @@ import {
VisAugmenterSetup,
VisAugmenterStart,
} from '../../../src/plugins/vis_augmenter/public';
-import {
- UiActionsSetup,
- UiActionsStart,
-} from '../../../src/plugins/ui_actions/public';
+import { UiActionsStart } from '../../../src/plugins/ui_actions/public';
declare module '../../../src/plugins/ui_actions/public' {
export interface ActionContextMapping {