mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 00:02:28 +08:00
refactor(client): remove abstract doRefresh
This commit is contained in:
parent
8b9b843c2d
commit
b69641c0e9
@ -48,8 +48,4 @@ export default class ProtectedSessionTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
super.doRender();
|
super.doRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
async doRefresh(note) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ export default abstract class TypeWidget extends NoteContextAwareWidget {
|
|||||||
return super.doRender();
|
return super.doRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract doRefresh(note: FNote | null | undefined): Promise<void>;
|
doRefresh(note: FNote | null | undefined) {}
|
||||||
|
|
||||||
async refresh() {
|
async refresh() {
|
||||||
const thisWidgetType = (this.constructor as any).getType();
|
const thisWidgetType = (this.constructor as any).getType();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user