[SSE mobile] Correct function list
This commit is contained in:
parent
ccec4e0933
commit
e99807bfc6
|
@ -42,13 +42,11 @@ const FunctionsList = props => {
|
||||||
const funcArr = props.funcArr;
|
const funcArr = props.funcArr;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
|
||||||
<View routes={routes}>
|
|
||||||
<div className="functions-list" style={{width: isPhone ? '100%' : '360px'}}>
|
<div className="functions-list" style={{width: isPhone ? '100%' : '360px'}}>
|
||||||
<List>
|
<List>
|
||||||
{funcArr.map((elem, index) => {
|
{funcArr.map((elem, index) => {
|
||||||
return (
|
return (
|
||||||
<ListItem key={index} title={elem.name} href="#" routeProps={{functionInfo: functions[elem.name], functionObj: elem}} className="no-indicator" onClick={() => props.insertFormula(elem.name, elem.type)}>
|
<ListItem key={index} title={elem.name} className="no-indicator" onClick={() => props.insertFormula(elem.name, elem.type)}>
|
||||||
<div slot='after'
|
<div slot='after'
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
@ -79,8 +77,6 @@ const FunctionsList = props => {
|
||||||
})}
|
})}
|
||||||
</List>
|
</List>
|
||||||
</div>
|
</div>
|
||||||
</View>
|
|
||||||
</Page>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,7 +97,7 @@ const CellEditorView = props => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<View id="idx-celleditor" style={viewStyle} className={expanded ? 'cell-editor expanded' : 'cell-editor collapsed'}>
|
<View id="idx-celleditor" style={viewStyle} routes={routes} className={expanded ? 'cell-editor expanded' : 'cell-editor collapsed'}>
|
||||||
<div id="box-cell-name" className="ce-group">
|
<div id="box-cell-name" className="ce-group">
|
||||||
<span id="idx-cell-name">{props.cellName}</span>
|
<span id="idx-cell-name">{props.cellName}</span>
|
||||||
<a href="#" id="idx-btn-function" className='link icon-only' disabled={(!isEdit && true) || props.stateCoauth} onClick={() => {props.onClickToOpenAddOptions('function', '#idx-btn-function');}}>
|
<a href="#" id="idx-btn-function" className='link icon-only' disabled={(!isEdit && true) || props.stateCoauth} onClick={() => {props.onClickToOpenAddOptions('function', '#idx-btn-function');}}>
|
||||||
|
@ -124,22 +120,27 @@ const CellEditorView = props => {
|
||||||
/>
|
/>
|
||||||
: null}
|
: null}
|
||||||
</View>
|
</View>
|
||||||
|
{!isPhone &&
|
||||||
<Popover
|
<Popover
|
||||||
id="idx-functions-list"
|
id="idx-functions-list"
|
||||||
className="popover__titled"
|
className="popover__titled"
|
||||||
closeByBackdropClick={false}
|
closeByBackdropClick={false}
|
||||||
backdrop={false}
|
backdrop={false}
|
||||||
closeByOutsideClick={true}
|
closeByOutsideClick={true}
|
||||||
style={{height: '175px'}}
|
|
||||||
>
|
>
|
||||||
{funcArr && funcArr.length ?
|
{funcArr && funcArr.length ?
|
||||||
|
<View style={{height: '175px'}} routes={routes}>
|
||||||
|
<Page>
|
||||||
<FunctionsList
|
<FunctionsList
|
||||||
functions={functions}
|
functions={functions}
|
||||||
funcArr={funcArr}
|
funcArr={funcArr}
|
||||||
insertFormula={props.insertFormula}
|
insertFormula={props.insertFormula}
|
||||||
/>
|
/>
|
||||||
|
</Page>
|
||||||
|
</View>
|
||||||
: null}
|
: null}
|
||||||
</Popover>
|
</Popover>
|
||||||
|
}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue