Skip to content

Commit 3c0cf3e

Browse files
authored
Merge pull request #10 from upfluence/fix/required_brand_decorator
Decorator: Required brand, call super before model when brand match requirement
2 parents 11ef5a3 + e420590 commit 3c0cf3e

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)