mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-26 11:19:45 +08:00
[SSE mobile] Correct closing settings
This commit is contained in:
@ -56,15 +56,12 @@ class EditCellController extends Component {
|
||||
const api = Common.EditorApi.get();
|
||||
const format = api.asc_convertNumFormatLocal2NumFormat(value);
|
||||
const storeCellSettings = this.props.storeCellSettings;
|
||||
// const isPhone = Device.phone;
|
||||
|
||||
storeCellSettings.addCustomFormat({
|
||||
value: api.asc_convertNumFormat2NumFormatLocal(format),
|
||||
format
|
||||
});
|
||||
api.asc_setCellFormat(format);
|
||||
|
||||
f7.views.current.router.back();
|
||||
}
|
||||
|
||||
toggleBold(value) {
|
||||
|
||||
@ -936,7 +936,6 @@ const PageCustomFormats = props => {
|
||||
const storeCellSettings = props.storeCellSettings;
|
||||
const customFormats = storeCellSettings.customFormats;
|
||||
const [renderList, setRenderList] = useState(false);
|
||||
// const isPhone = Device.phone;
|
||||
|
||||
useEffect(() => {
|
||||
if (customFormats?.length) {
|
||||
@ -946,7 +945,7 @@ const PageCustomFormats = props => {
|
||||
|
||||
const handleCellFormatClick = (format) => {
|
||||
props.onCellFormat(format);
|
||||
f7.views.current.router.back();
|
||||
props.f7router.back();
|
||||
};
|
||||
|
||||
return (
|
||||
@ -988,11 +987,16 @@ const PageCreationCustomFormat = observer(props => {
|
||||
const [formatValue, setFormatValue] = useState('');
|
||||
const isIos = Device.ios;
|
||||
|
||||
const handleSetCustomFormat = (value) => {
|
||||
props.setCustomFormat(value);
|
||||
props.f7router.back();
|
||||
}
|
||||
|
||||
return (
|
||||
<Page>
|
||||
<Navbar title={t('View.Edit.textCreateFormat')} backLink={_t.textBack}>
|
||||
<NavRight>
|
||||
<Link text={isIos ? t('View.Edit.textSave') : ''} icon={!isIos ? 'icon-check' : null} className={!formatValue && 'disabled'} onClick={() => props.setCustomFormat(formatValue)}></Link>
|
||||
<Link text={isIos ? t('View.Edit.textSave') : ''} icon={!isIos ? 'icon-check' : null} className={!formatValue && 'disabled'} onClick={() => handleSetCustomFormat(formatValue)}></Link>
|
||||
</NavRight>
|
||||
</Navbar>
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user