diff --git a/ui/app/components/clients/counts/error.hbs b/ui/app/components/clients/counts/error.hbs index 16cf9758ce..f93f952bfd 100644 --- a/ui/app/components/clients/counts/error.hbs +++ b/ui/app/components/clients/counts/error.hbs @@ -3,8 +3,10 @@ SPDX-License-Identifier: BUSL-1.1 }} - + diff --git a/ui/app/components/clients/no-data.hbs b/ui/app/components/clients/no-data.hbs index 29311bb5db..d787980234 100644 --- a/ui/app/components/clients/no-data.hbs +++ b/ui/app/components/clients/no-data.hbs @@ -4,30 +4,37 @@ }} {{#if (or @config.reportingEnabled (eq @config.enabled "On"))}} - + + + + {{else if @config}} - + + + {{#if @config.canEdit}} - + + + {{/if}} - + {{else}} - + + + + {{/if}} \ No newline at end of file diff --git a/ui/app/components/clients/page/counts.hbs b/ui/app/components/clients/page/counts.hbs index 57f7bf1fc2..7fcc10bc6f 100644 --- a/ui/app/components/clients/page/counts.hbs +++ b/ui/app/components/clients/page/counts.hbs @@ -82,19 +82,25 @@ {{yield}} {{else if (and this.version.isCommunity (or (not @startTimestamp) (not @endTimestamp)))}} {{! Empty state for community without start or end query param }} - + + + + {{else}} - + + + + {{/if}} {{/if}} \ No newline at end of file diff --git a/ui/app/templates/vault/cluster/clients/error.hbs b/ui/app/templates/vault/cluster/clients/error.hbs index 443a9b42cd..cf5a6acda8 100644 --- a/ui/app/templates/vault/cluster/clients/error.hbs +++ b/ui/app/templates/vault/cluster/clients/error.hbs @@ -6,29 +6,36 @@ {{#if (eq @model.httpStatus 404)}} {{else}} - - {{#if (eq @model.httpStatus 403)}} -

- You must be granted permissions to view this page. Ask your administrator if you think you should have access to the - {{@model.path}} - endpoint. -

- {{else}} -
    - {{#if @model.message}} -
  • {{@model.message}}
  • -
    +
    + + + + {{#if (eq @model.httpStatus 403)}} +

    + You must be granted permissions to view this page. Ask your administrator if you think you should have access to + the + {{@model.path}} + endpoint. +

    + {{else}} +
      + {{#if @model.message}} +
    • {{@model.message}}
    • +
      + {{/if}} + {{#each @model.errors as |error|}} +
    • + {{error}} +
    • + {{/each}} +
    {{/if}} - {{#each @model.errors as |error|}} -
  • - {{error}} -
  • - {{/each}} -
- {{/if}} -
+ +
+ {{/if}} \ No newline at end of file diff --git a/ui/tests/acceptance/clients/counts-test.js b/ui/tests/acceptance/clients/counts-test.js index 52529b4059..2895ecf652 100644 --- a/ui/tests/acceptance/clients/counts-test.js +++ b/ui/tests/acceptance/clients/counts-test.js @@ -62,7 +62,7 @@ module('Acceptance | clients | counts', function (hooks) { return overrideResponse(403); }); await visit('/vault/clients/counts/overview'); - assert.dom(GENERAL.emptyStateTitle).hasText('You are not authorized'); + assert.dom(GENERAL.emptyStateTitle).hasText('ERROR 403 You are not authorized'); assert .dom(GENERAL.emptyStateMessage) .hasText( diff --git a/ui/tests/integration/components/clients/page/counts-test.js b/ui/tests/integration/components/clients/page/counts-test.js index cd04ab8cfe..ed139f1407 100644 --- a/ui/tests/integration/components/clients/page/counts-test.js +++ b/ui/tests/integration/components/clients/page/counts-test.js @@ -81,7 +81,7 @@ module('Integration | Component | clients | Page::Counts', function (hooks) { assert .dom(GENERAL.emptyStateTitle) - .hasText('You are not authorized', 'Activity error empty state renders'); + .hasText('ERROR 403 You are not authorized', 'Activity error empty state renders'); }); test('it should render config disabled alert', async function (assert) {