mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] owl: mount util now takes an AppConfig
This commit is contained in:
committed by
Géry Debongnie
parent
d7403871fc
commit
fa426b7fc0
+2
-2
@@ -10,7 +10,7 @@ export interface Env {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
interface Config {
|
||||
export interface AppConfig {
|
||||
dev?: boolean;
|
||||
env?: Env;
|
||||
translatableAttributes?: string[];
|
||||
@@ -35,7 +35,7 @@ export class App<T extends typeof Component = any> extends TemplateSet {
|
||||
this.props = props;
|
||||
}
|
||||
|
||||
configure(config: Config): App<T> {
|
||||
configure(config: AppConfig): App<T> {
|
||||
if (config.dev) {
|
||||
this.dev = config.dev;
|
||||
console.info(DEV_MSG);
|
||||
|
||||
Reference in New Issue
Block a user