fix: 🐛 breadcrumbs on scopes route not showing since model move (#2235)

This commit is contained in:
Lisbet Alvarez authored and Zhihe Li committed 2024-04-12 14:55:34 -04:00
1 parent 33d359e692
commit d52957d87b
2 files changed
+9 -3

No files matched your search

@@ -25,4 +25,10 @@ export default class ScopesScopeScopesRoute extends Route {
beforeModel() {
if (!this.session.isAuthenticated) this.router.transitionTo('index');
}
setupController(controller) {
const currentScope = this.modelFor('scopes.scope');
super.setupController(...arguments);
controller.setProperties({ currentScope });
}
}
@@ -3,7 +3,7 @@
SPDX-License-Identifier: MPL-2.0
}}
{{#if @model.currentScope.isGlobal}}
{{#if this.currentScope.isGlobal}}
{{page-title (t 'resources.org.title_plural')}}
<Breadcrumbs::Item
@text={{t 'resources.org.title_plural'}}
@@ -13,13 +13,13 @@
/>
{{/if}}
{{#if @model.currentScope.isOrg}}
{{#if this.currentScope.isOrg}}
{{page-title (t 'resources.project.title_plural')}}
<Breadcrumbs::Item
@text={{t 'resources.project.title_plural'}}
@icon='grid'
@route='scopes.scope.scopes'
@model={{@model.currentScope.id}}
@model={{this.currentScope.id}}
/>
{{/if}}