From d92261e2b0ec8a49952c638ad160eda53de35edc Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Tue, 13 Jul 2021 08:20:41 -0400 Subject: [PATCH] edit ember-can to add additional attribute for namespace We wanted the ability to get our namespace from query params in order to do this, we're using additional attributes via ember-can to set a bound property directly from our handlebar file. This sets us up better in the event that the namespace filter changes on the UI because our handlebar file will be aware of the change, whereas our ability may not update as the namespace filter updates. --- ui/app/templates/jobs/index.hbs | 4 +-- ui/tests/acceptance/jobs-list-test.js | 36 +++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/ui/app/templates/jobs/index.hbs b/ui/app/templates/jobs/index.hbs index a9511e363..1d80a5ff4 100644 --- a/ui/app/templates/jobs/index.hbs +++ b/ui/app/templates/jobs/index.hbs @@ -12,7 +12,7 @@ {{#if (media "isMobile")}}
- {{#if (can "run job")}} + {{#if (can "run job" namespace=this.qpNamespace)}} Run Job {{else}}