From 55e22d914fbae5912cfd12a3451452b01bbd0df7 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Tue, 27 Jul 2021 15:56:11 +0300 Subject: [PATCH] [SSE mobile] Fix Bug 51146 --- .../mobile/src/controller/add/AddFunction.jsx | 5 +++++ .../mobile/src/controller/settings/ApplicationSettings.jsx | 1 + 2 files changed, 6 insertions(+) diff --git a/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx b/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx index 5c6a4a525..8e9d6cae4 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/add/AddFunction.jsx @@ -10,6 +10,11 @@ import {AddFunction} from '../../view/add/AddFunction'; class _FunctionGroups extends Component { constructor (props) { super(props); + + Common.Notifications.on('changeFuncLang', () => { + this.api = Common.EditorApi.get(); + this.init(); + }); } componentDidMount() { Common.Notifications.on('document:ready', () => { diff --git a/apps/spreadsheeteditor/mobile/src/controller/settings/ApplicationSettings.jsx b/apps/spreadsheeteditor/mobile/src/controller/settings/ApplicationSettings.jsx index 92dd49864..8d85d8e71 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/settings/ApplicationSettings.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/settings/ApplicationSettings.jsx @@ -77,6 +77,7 @@ class ApplicationSettingsController extends Component { onFormulaLangChange(value) { LocalStorage.setItem("sse-settings-func-lang", value); this.initRegSettings(); + Common.Notifications.trigger('changeFuncLang'); } onRegSettings(regCode) {