cleanup and reduced number of settings validations

This commit is contained in:
mProjectsCode 2022-09-27 15:04:56 +02:00
parent 68ec5135cc
commit 3db3496e0d
12 changed files with 171 additions and 297 deletions

View file

@ -1,6 +1,5 @@
import {ButtonComponent, DropdownComponent, Modal, Notice, Setting, TextComponent} from 'obsidian';
import {MediaTypeModel} from '../models/MediaTypeModel';
import {debugLog} from '../utils/Utils';
import MediaDbPlugin from '../main';
export class MediaDbIdSearchModal extends Modal {
@ -33,9 +32,6 @@ export class MediaDbIdSearchModal extends Modal {
}
async search(): Promise<MediaTypeModel> {
debugLog(this.selectedApi);
if (!this.query) {
new Notice('MDB | no Id entered');
return;