cleanup
This commit is contained in:
parent
4d4b819d6c
commit
04f9a0f543
@ -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 {
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user