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;
}
async getDictionaries() {
async getTitles() {
if (this.db) {
return this.db.dictionaries.toArray();
} else {

View File

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

View File

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