diff --git a/ui/desktop/app/templates/scopes/scope/authenticate.hbs b/ui/desktop/app/templates/scopes/scope/authenticate.hbs index f758b2dec..fc6d5cc90 100644 --- a/ui/desktop/app/templates/scopes/scope/authenticate.hbs +++ b/ui/desktop/app/templates/scopes/scope/authenticate.hbs @@ -46,22 +46,13 @@ {{#if @model.authMethods}} {{outlet}} - -

- {{t 'cluster-url.connected-to'}}: - {{this.clusterUrl}} -
- - {{t 'actions.change-cluster-url'}} - -

- {{/if}} {{#unless @model.authMethods}} @@ -70,5 +61,13 @@ {{/unless}} +

+ {{t 'cluster-url.connected-to'}}: + {{this.clusterUrl}} +
+ + {{t 'actions.change-cluster-url'}} + +

\ No newline at end of file diff --git a/ui/desktop/tests/acceptance/authentication-test.js b/ui/desktop/tests/acceptance/authentication-test.js index 179ab7d22..c7e261b66 100644 --- a/ui/desktop/tests/acceptance/authentication-test.js +++ b/ui/desktop/tests/acceptance/authentication-test.js @@ -259,4 +259,12 @@ module('Acceptance | authentication', function (hooks) { assert.dom('.rose-dropdown-content a').exists({ count: 2 }); }); + + test('change cluster url is visible when no auth methods are available', async function (assert) { + this.server.get('/auth-methods', () => new Response(200)); + await visit(urls.authenticate.methods.global); + + assert.dom('[data-test-no-auth-methods]').includesText('No Auth Methods'); + assert.dom('.change-origin').exists(); + }); });