From e99807bfc68464494bd4fb22466b5fb6ab6f0665 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Wed, 8 Sep 2021 16:43:47 +0300 Subject: [PATCH] [SSE mobile] Correct function list --- .../mobile/src/view/CellEditor.jsx | 113 +++++++++--------- 1 file changed, 57 insertions(+), 56 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/src/view/CellEditor.jsx b/apps/spreadsheeteditor/mobile/src/view/CellEditor.jsx index 737e653d6..ed5e50f7e 100644 --- a/apps/spreadsheeteditor/mobile/src/view/CellEditor.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/CellEditor.jsx @@ -42,45 +42,41 @@ const FunctionsList = props => { const funcArr = props.funcArr; return ( - - -
- - {funcArr.map((elem, index) => { - return ( - props.insertFormula(elem.name, elem.type)}> -
{ - e.stopPropagation(); - let functionInfo = functions[elem.name]; - - if(functionInfo) { - if(isPhone) { - f7.dialog.create({ - title: functionInfo.caption, - content: `

${functionInfo.caption} ${functionInfo.args}

${functionInfo.descr}

`, - buttons: [ - {text: t('View.Add.textCancel')}, - { - text: t('View.Add.textInsert'), - onClick: () => props.insertFormula(elem.name, elem.type) - } - ] - }).open(); - } else { - f7.views.current.router.navigate('/function-info/', {props: {functionInfo, functionObj: elem, insertFormula: props.insertFormula}}); - } - } - }}> - -
-
- ) - })} -
-
-
-
+
+ + {funcArr.map((elem, index) => { + return ( + props.insertFormula(elem.name, elem.type)}> +
{ + e.stopPropagation(); + let functionInfo = functions[elem.name]; + + if(functionInfo) { + if(isPhone) { + f7.dialog.create({ + title: functionInfo.caption, + content: `

${functionInfo.caption} ${functionInfo.args}

${functionInfo.descr}

`, + buttons: [ + {text: t('View.Add.textCancel')}, + { + text: t('View.Add.textInsert'), + onClick: () => props.insertFormula(elem.name, elem.type) + } + ] + }).open(); + } else { + f7.views.current.router.navigate('/function-info/', {props: {functionInfo, functionObj: elem, insertFormula: props.insertFormula}}); + } + } + }}> + +
+
+ ) + })} +
+
) } @@ -101,7 +97,7 @@ const CellEditorView = props => { return ( <> - +