Skip to content

Commit e420590

Browse files
committed
Decorator: Required brand, call super before model when brand match requirement
1 parent 11ef5a3 commit e420590

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

addon/decorators/required-brand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export function requiredBrand(brand: string, fallbackRoute: string) {
2323
);
2424
if ((getOwnConfig() as any).brand !== brand) {
2525
this.router.transitionTo(fallbackRoute);
26+
} else {
27+
super.beforeModel()
2628
}
2729
}
2830
}

0 commit comments

Comments
 (0)