From 7955fc85ac089d856b44bdea78eccd26ffbd690c Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Mon, 3 Jun 2024 19:25:51 +0200 Subject: display inflection rule descriptions (#1000) * load descriptions in deinflector * description functions in deinflectors * show descriptions in title * use toaster * use names without internal * css lint * reformat transform descriptors * fix merge errors * done? * rename method --- ext/js/data/options-util.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ext/js/data/options-util.js') diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index 074beb4e..5ef30adb 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -545,6 +545,7 @@ export class OptionsUtil { this._updateVersion35, this._updateVersion36, this._updateVersion37, + this._updateVersion38, ]; /* eslint-enable @typescript-eslint/unbound-method */ if (typeof targetVersion === 'number' && targetVersion < result.length) { @@ -1304,6 +1305,14 @@ export class OptionsUtil { await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v37.handlebars'); } + /** + * - Updated `conjugation` handlebars for new inflection chain format. + * @type {import('options-util').UpdateFunction} + */ + async _updateVersion38(options) { + await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v38.handlebars'); + } + /** * @param {string} url * @returns {Promise} -- cgit v1.2.3