From 11788fb744f7d24ae9d375daf83b17fde05cfbd4 Mon Sep 17 00:00:00 2001 From: Christian Zosel Date: Thu, 28 Apr 2022 17:15:00 +0200 Subject: [PATCH] fix: handle case where engine is mounted under different name We only assert the route segment that we're sure of, making collisions slightly more likely but still unlikely enough (hopefully). --- addon/controllers/scopes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/controllers/scopes.js b/addon/controllers/scopes.js index 099f4763..683f59cb 100644 --- a/addon/controllers/scopes.js +++ b/addon/controllers/scopes.js @@ -5,7 +5,7 @@ export default class ScopesController extends Controller { @service router; get activeScope() { - if (!this.router.currentRouteName.includes("ember-emeis.scopes.edit")) { + if (!this.router.currentRouteName.includes("scopes.edit")) { return null; } return this.router.currentRoute.attributes;