first prove of concept O_O implementation
This commit is contained in:
parent
3db3496e0d
commit
b5d5cc5ca2
4 changed files with 80 additions and 7 deletions
|
|
@ -12,8 +12,8 @@ export class MediaDbSearchResultModal extends SelectModal<MediaTypeModel> {
|
|||
|
||||
sendCallback: boolean;
|
||||
|
||||
constructor(plugin: MediaDbPlugin, elements: MediaTypeModel[], skipButton: boolean) {
|
||||
super(plugin.app, elements);
|
||||
constructor(plugin: MediaDbPlugin, elements: MediaTypeModel[], skipButton: boolean, allowMultiSelect: boolean = true) {
|
||||
super(plugin.app, elements, allowMultiSelect);
|
||||
this.plugin = plugin;
|
||||
|
||||
this.title = 'Search Results';
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ export abstract class SelectModal<T> extends Modal {
|
|||
selectModalElements: SelectModalElement<T>[];
|
||||
|
||||
|
||||
protected constructor(app: App, elements: T[]) {
|
||||
protected constructor(app: App, elements: T[], allowMultiSelect: boolean = true) {
|
||||
super(app);
|
||||
this.allowMultiSelect = true;
|
||||
this.allowMultiSelect = allowMultiSelect;
|
||||
|
||||
this.title = '';
|
||||
this.description = '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue