[SSE] Show description for custom functions

This commit is contained in:
Julia Radzhabova
2024-04-08 19:42:03 +03:00
parent a3f687796a
commit f4a65b399c
2 changed files with 2 additions and 2 deletions

View File

@ -3349,7 +3349,7 @@ define([
switch (type) {
case Asc.c_oAscPopUpSelectorType.Func:
iconCls = 'menu__icon btn-function';
hint = (funcdesc && funcdesc[origname]) ? funcdesc[origname].d : '';
hint = (funcdesc && funcdesc[origname]) ? funcdesc[origname].d : menuItem.asc_getDescription() || '';
break;
case Asc.c_oAscPopUpSelectorType.Table:
iconCls = 'menu__icon btn-menu-table';

View File

@ -71,7 +71,7 @@ const CellEditor = inject("storeFunctions")(observer(props => {
switch (type) {
case Asc.c_oAscPopUpSelectorType.Func:
descr = functions && functions[origName] ? functions[origName].descr : '';
descr = functions && functions[origName] ? functions[origName].descr : item.asc_getDescription() || '';
break;
case Asc.c_oAscPopUpSelectorType.TableThisRow:
descr = t('View.Add.textThisRowHint');