From f4a65b399cef89fdddd1106353d8698de560dee5 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 8 Apr 2024 19:42:03 +0300 Subject: [PATCH] [SSE] Show description for custom functions --- apps/spreadsheeteditor/main/app/controller/DocumentHolder.js | 2 +- apps/spreadsheeteditor/mobile/src/controller/CellEditor.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index 159a1f5e62..87fbd37def 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -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'; diff --git a/apps/spreadsheeteditor/mobile/src/controller/CellEditor.jsx b/apps/spreadsheeteditor/mobile/src/controller/CellEditor.jsx index 7a15d11147..5287b86f28 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/CellEditor.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/CellEditor.jsx @@ -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');