remove unused static getType() from section widgets

This commit is contained in:
zadam 2021-05-29 13:51:21 +02:00
parent 7a389baf08
commit aa901b67ed
10 changed files with 0 additions and 20 deletions

View file

@ -38,8 +38,6 @@ export default class BasicPropertiesWidget extends NoteContextAwareWidget {
this.child(this.noteTypeWidget, this.protectedNoteSwitchWidget);
}
static getType() { return "basic-properties"; }
isEnabled() {
return this.note;
}

View file

@ -43,8 +43,6 @@ const TPL = `
</div>
`;
export default class BookPropertiesWidget extends NoteContextAwareWidget {
static getType() { return "book-properties"; }
isEnabled() {
return this.note && this.note.type === 'book';
}

View file

@ -55,8 +55,6 @@ const TPL = `
</div>`;
export default class FilePropertiesWidget extends NoteContextAwareWidget {
static getType() { return "file"; }
isEnabled() {
return this.note && this.note.type === 'file';
}

View file

@ -37,8 +37,6 @@ const TPL = `
</div>`;
export default class ImagePropertiesWidget extends NoteContextAwareWidget {
static getType() { return "image"; }
isEnabled() {
return this.note && this.note.type === 'image';
}

View file

@ -24,8 +24,6 @@ const TPL = `
let linkMapContainerIdCtr = 1;
export default class LinkMapWidget extends NoteContextAwareWidget {
static getType() { return "link-map"; }
isEnabled() {
return this.note;
}

View file

@ -62,8 +62,6 @@ const TPL = `
</div>
`;
export default class NoteInfoWidget extends NoteContextAwareWidget {
static getType() { return "note-info"; }
isEnabled() {
return this.note;
}

View file

@ -36,8 +36,6 @@ const TPL = `
</div>`;
export default class NotePathsWidget extends NoteContextAwareWidget {
static getType() { return "note-paths"; }
isEnabled() {
return this.note;
}

View file

@ -15,8 +15,6 @@ const TPL = `
</div>`;
export default class NotePropertiesWidget extends NoteContextAwareWidget {
static getType() { return "note-properties"; }
isEnabled() {
return this.note && !!this.note.getLabelValue('pageUrl');
}

View file

@ -200,8 +200,6 @@ for (const clazz of [
}
export default class SearchDefinitionWidget extends NoteContextAwareWidget {
static getType() { return "search"; }
isEnabled() {
return this.note && this.note.type === 'search';
}

View file

@ -31,8 +31,6 @@ const TPL = `
`;
export default class SimilarNotesWidget extends NoteContextAwareWidget {
static getType() { return "similar-notes"; }
isEnabled() {
return super.isEnabled()
&& this.note.type !== 'search'