diff --git a/.changelog/11905.txt b/.changelog/11905.txt new file mode 100644 index 000000000..510e305d0 --- /dev/null +++ b/.changelog/11905.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Prevent disconnection notice appearing with auth change on certain pages +``` diff --git a/ui/packages/consul-ui/app/components/data-loader/index.hbs b/ui/packages/consul-ui/app/components/data-loader/index.hbs index b29d59a58..6f38827ab 100644 --- a/ui/packages/consul-ui/app/components/data-loader/index.hbs +++ b/ui/packages/consul-ui/app/components/data-loader/index.hbs @@ -50,10 +50,10 @@ + {{#if (not (eq error.status '401'))}} {{#yield-slot name="disconnected" params=(block-params (action dispatch "RESET"))}} - {{yield api}} + {{yield api}} {{else}} - {{#if (not eq error.status '401')}} - {{/if}} {{/yield-slot}} + {{/if}} {{#if (eq error.status "403")}} {{#yield-slot name="error"}}