From d52957d87bed135ab9fed4adf0594e44f1310896 Mon Sep 17 00:00:00 2001
From: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com>
Date: Thu, 11 Apr 2024 12:03:14 -0700
Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20breadcrumbs=20on=20scopes?=
=?UTF-8?q?=20route=20not=20showing=20since=20model=20move=20(#2235)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ui/admin/app/routes/scopes/scope/scopes.js | 6 ++++++
ui/admin/app/templates/scopes/scope/scopes.hbs | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ui/admin/app/routes/scopes/scope/scopes.js b/ui/admin/app/routes/scopes/scope/scopes.js
index d590b44a8..8c774898c 100644
--- a/ui/admin/app/routes/scopes/scope/scopes.js
+++ b/ui/admin/app/routes/scopes/scope/scopes.js
@@ -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 });
+ }
}
diff --git a/ui/admin/app/templates/scopes/scope/scopes.hbs b/ui/admin/app/templates/scopes/scope/scopes.hbs
index 0076b0acb..d9db453a0 100644
--- a/ui/admin/app/templates/scopes/scope/scopes.hbs
+++ b/ui/admin/app/templates/scopes/scope/scopes.hbs
@@ -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')}}
{{/if}}
-{{#if @model.currentScope.isOrg}}
+{{#if this.currentScope.isOrg}}
{{page-title (t 'resources.project.title_plural')}}
{{/if}}