()
| 1856 | } |
| 1857 | |
| 1858 | initLoadSaver(): void { |
| 1859 | this.loadSaveButton.off('click').on('click', () => { |
| 1860 | if (this.currentLanguage) { |
| 1861 | loadSave.run( |
| 1862 | (text, filename) => { |
| 1863 | this.setSource(text); |
| 1864 | this.setFilename(filename); |
| 1865 | this.updateState(); |
| 1866 | this.maybeEmitChange(true); |
| 1867 | }, |
| 1868 | this.getSource(), |
| 1869 | this.currentLanguage, |
| 1870 | ); |
| 1871 | } |
| 1872 | }); |
| 1873 | } |
| 1874 | |
| 1875 | onLanguageChange(newLangId: LanguageKey, firstTime?: boolean): void { |
| 1876 | const languages = languagesService.getLanguagesOrFail(); |
no test coverage detected