mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
remove unused static getType() from section widgets
This commit is contained in:
parent
7a389baf08
commit
aa901b67ed
@ -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;
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -24,8 +24,6 @@ const TPL = `
|
||||
let linkMapContainerIdCtr = 1;
|
||||
|
||||
export default class LinkMapWidget extends NoteContextAwareWidget {
|
||||
static getType() { return "link-map"; }
|
||||
|
||||
isEnabled() {
|
||||
return this.note;
|
||||
}
|
||||
|
@ -62,8 +62,6 @@ const TPL = `
|
||||
</div>
|
||||
`;
|
||||
export default class NoteInfoWidget extends NoteContextAwareWidget {
|
||||
static getType() { return "note-info"; }
|
||||
|
||||
isEnabled() {
|
||||
return this.note;
|
||||
}
|
||||
|
@ -36,8 +36,6 @@ const TPL = `
|
||||
</div>`;
|
||||
|
||||
export default class NotePathsWidget extends NoteContextAwareWidget {
|
||||
static getType() { return "note-paths"; }
|
||||
|
||||
isEnabled() {
|
||||
return this.note;
|
||||
}
|
||||
|
@ -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');
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user