mirror of
https://github.com/zadam/trilium.git
synced 2025-12-21 23:04:24 +01:00
chore(client): fix typecheck
This commit is contained in:
parent
7567903da3
commit
af37c175a3
@ -103,7 +103,7 @@ export class WidgetsByParent {
|
||||
}
|
||||
|
||||
get(parentName: ParentName) {
|
||||
const widgets: (Component | VNode)[] = this.getLegacyWidgets(parentName);
|
||||
const widgets: (BasicWidget | VNode)[] = this.getLegacyWidgets(parentName);
|
||||
for (const preactWidget of this.getPreactWidgets(parentName)) {
|
||||
const el = h(preactWidget.render, {});
|
||||
const widget = new ReactWrappedWidget(el);
|
||||
@ -169,6 +169,7 @@ async function getWidgetBundlesByParent() {
|
||||
}
|
||||
} catch (e) {
|
||||
toastService.showPersistent({
|
||||
id: `custom-widget-list-failure`,
|
||||
title: t("toast.widget-list-error.title"),
|
||||
message: getErrorMessage(e),
|
||||
icon: "bx bx-error-circle"
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import FlexContainer from "./flex_container.js";
|
||||
import splitService from "../../services/resizer.js";
|
||||
import type RightPanelWidget from "../right_panel_widget.js";
|
||||
import type { EventData, EventNames } from "../../components/app_context.js";
|
||||
import splitService from "../../services/resizer.js";
|
||||
import type BasicWidget from "../basic_widget.js";
|
||||
import FlexContainer from "./flex_container.js";
|
||||
|
||||
export default class RightPaneContainer extends FlexContainer<RightPanelWidget> {
|
||||
export default class RightPaneContainer extends FlexContainer<BasicWidget> {
|
||||
private rightPaneHidden: boolean;
|
||||
private firstRender: boolean;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user