add IRouter interface

This commit is contained in:
Géry Debongnie
2019-01-26 18:12:54 +01:00
parent bfa76e9de5
commit c3fa3042dc
5 changed files with 18 additions and 8 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import { Widget } from "../core/widget";
import { Env } from "../env";
import { CRM } from "../widgets/crm";
import { Discuss } from "../widgets/discuss";
import { Query, Router } from "./router";
import { Query, IRouter } from "./router";
interface Type<T> extends Function {
new (...args: any[]): T;
@@ -33,10 +33,10 @@ const actions: any[] = [
];
export class ActionManager extends EventBus {
router: Router;
router: IRouter;
currentAction: ActionWidget | null = null;
constructor(router: Router) {
constructor(router: IRouter) {
super();
this.router = router;
const query = this.router.getQuery();