Skip to content

Commit

Permalink
CB-4837 fix: show in value panel menu button (#2596)
Browse files Browse the repository at this point in the history
Co-authored-by: Daria Marutkina <[email protected]>
  • Loading branch information
Wroud and dariamarutkina authored May 9, 2024
1 parent 674c522 commit bdea460
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
},
});
}
Expand Down

0 comments on commit bdea460

Please sign in to comment.