Skip to content

Commit 95f74be

Browse files
authored
[Lens] Fix the button text for going back to the aggregation based visualization (#222823)
## Summary Fix #203977 When the user clicked 'Edit visualization in Lens' from an aggregation visualization, the button to return to the aggregation based visualization editor showed the wrong app to return to (Dashboard). This PR fixes the button text to return to the aggregation based visualization. Before: ![Kapture 2025-06-05 at 16 42 22](https://github.com/user-attachments/assets/6bca154a-b550-41f6-ac59-08f36fe27545) After: ![Kapture 2025-06-05 at 16 33 39](https://github.com/user-attachments/assets/d272e9c2-794e-487f-a322-17571b7b13d5) ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
1 parent 4180267 commit 95f74be

File tree

1 file changed

+3
-2
lines changed
  • x-pack/platform/plugins/shared/lens/public

1 file changed

+3
-2
lines changed

x-pack/platform/plugins/shared/lens/public/plugin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
ACTION_CONVERT_DASHBOARD_PANEL_TO_LENS,
2929
ACTION_CONVERT_TO_LENS,
3030
DASHBOARD_VISUALIZATION_PANEL_TRIGGER,
31+
ACTION_CONVERT_AGG_BASED_TO_LENS,
3132
VisualizationsSetup,
3233
VisualizationsStart,
3334
} from '@kbn/visualizations-plugin/public';
@@ -672,11 +673,11 @@ export class LensPlugin {
672673

673674
startDependencies.uiActions.addTriggerActionAsync(
674675
AGG_BASED_VISUALIZATION_TRIGGER,
675-
ACTION_CONVERT_DASHBOARD_PANEL_TO_LENS,
676+
ACTION_CONVERT_AGG_BASED_TO_LENS,
676677
async () => {
677678
const { convertToLensActionFactory } = await import('./async_services');
678679
const action = convertToLensActionFactory(
679-
ACTION_CONVERT_DASHBOARD_PANEL_TO_LENS,
680+
ACTION_CONVERT_AGG_BASED_TO_LENS,
680681
i18n.translate('xpack.lens.visualizeAggBasedLegend', {
681682
defaultMessage: 'Visualize agg based chart',
682683
}),

0 commit comments

Comments
 (0)