aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-02 14:06:16 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-07 20:30:55 -0500
commit2ab871e7ee93ddc4a2f1ca41aad10e4b189b6c0f (patch)
tree023456bc6e21d38b54addff66580d0568af104fb /ext/bg/js/util.js
parent79069d59085e4fa50599052381b8f2c0d22270aa (diff)
Update how dictionaries are displayed on the settings page
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 1ca0833b..3554ec3d 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -84,6 +84,14 @@ function utilDatabaseSummarize() {
return utilBackend().translator.database.summarize();
}
+function utilDatabaseGetDictionaryInfo() {
+ return utilBackend().translator.database.getDictionaryInfo();
+}
+
+function utilDatabaseGetDictionaryCounts(dictionaryNames, getTotal) {
+ return utilBackend().translator.database.getDictionaryCounts(dictionaryNames, getTotal);
+}
+
function utilAnkiGetModelFieldNames(modelName) {
return utilBackend().anki.getModelFieldNames(modelName);
}