aboutsummaryrefslogtreecommitdiff
path: root/ext/js/data
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-06-03 19:25:51 +0200
committerGitHub <noreply@github.com>2024-06-03 17:25:51 +0000
commit7955fc85ac089d856b44bdea78eccd26ffbd690c (patch)
tree6a7cfc6464612f9f129b25fa59a46f9c7c0e72b5 /ext/js/data
parentd2fce502ecb00e3c9202295c93fbb8c554ddbd69 (diff)
display inflection rule descriptions (#1000)24.6.3.0
* 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
Diffstat (limited to 'ext/js/data')
-rw-r--r--ext/js/data/options-util.js9
1 files changed, 9 insertions, 0 deletions
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) {
@@ -1305,6 +1306,14 @@ export class OptionsUtil {
}
/**
+ * - 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<chrome.tabs.Tab>}
*/