This commit is contained in:
Alex Yatskov 2017-09-13 17:30:45 -07:00
parent 4d4b819d6c
commit 04f9a0f543
3 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ class Database {
return result; return result;
} }
async getDictionaries() { async getTitles() {
if (this.db) { if (this.db) {
return this.db.dictionaries.toArray(); return this.db.dictionaries.toArray();
} else { } else {

View File

@ -213,7 +213,7 @@ async function dictionaryGroupsPopulate(options) {
const dictGroups = $('#dict-groups').empty(); const dictGroups = $('#dict-groups').empty();
const dictWarning = $('#dict-warning').hide(); const dictWarning = $('#dict-warning').hide();
const dictRows = await utilDatabaseGetDictionaries(); const dictRows = await utilDatabaseGetTitles();
if (dictRows.length === 0) { if (dictRows.length === 0) {
dictWarning.show(); dictWarning.show();
} }

View File

@ -42,8 +42,8 @@ function utilAnkiGetModelFieldNames(modelName) {
return utilBackend().anki.getModelFieldNames(modelName); return utilBackend().anki.getModelFieldNames(modelName);
} }
function utilDatabaseGetDictionaries() { function utilDatabaseGetTitles() {
return utilBackend().translator.database.getDictionaries(); return utilBackend().translator.database.getTitles();
} }
function utilDatabasePurge() { function utilDatabasePurge() {