cleanup
This commit is contained in:
parent
4d4b819d6c
commit
04f9a0f543
@ -154,7 +154,7 @@ class Database {
|
||||
return result;
|
||||
}
|
||||
|
||||
async getDictionaries() {
|
||||
async getTitles() {
|
||||
if (this.db) {
|
||||
return this.db.dictionaries.toArray();
|
||||
} else {
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user