From bdea460218d229b0f19a27df87ad67475a7c1c79 Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 9 May 2024 18:19:08 +0800 Subject: [PATCH] CB-4837 fix: show in value panel menu button (#2596) Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com> --- .../plugin-data-spreadsheet-new/src/SpreadsheetBootstrap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/packages/plugin-data-spreadsheet-new/src/SpreadsheetBootstrap.ts b/webapp/packages/plugin-data-spreadsheet-new/src/SpreadsheetBootstrap.ts index d62444e410..93a97d7654 100644 --- a/webapp/packages/plugin-data-spreadsheet-new/src/SpreadsheetBootstrap.ts +++ b/webapp/packages/plugin-data-spreadsheet-new/src/SpreadsheetBootstrap.ts @@ -56,13 +56,13 @@ export class SpreadsheetBootstrap extends Bootstrap { return context.contextType === DataGridContextMenuService.cellContext; }, isHidden(context) { - return typeof context.data.actions.valuePresentationId === 'string' || context.data.simple; + return context.data.actions.valuePresentationId === 'value-text-presentation' || context.data.simple; }, order: 0.5, title: 'data_grid_table_open_value_panel', icon: 'value-panel', onClick(context) { - context.data.actions.setValuePresentation(''); + context.data.actions.setValuePresentation('value-text-presentation'); }, }); }