ui: Ensure disconnect error doesn't appear w/auth change on some pages (#11905)
This commit is contained in:
parent
c64c512d1b
commit
2e571b6406
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:bug
|
||||||
|
ui: Prevent disconnection notice appearing with auth change on certain pages
|
||||||
|
```
|
|
@ -50,10 +50,10 @@
|
||||||
<State @matches={{array "idle" "disconnected" "invalidating"}}>
|
<State @matches={{array "idle" "disconnected" "invalidating"}}>
|
||||||
|
|
||||||
<State @matches="disconnected">
|
<State @matches="disconnected">
|
||||||
|
{{#if (not (eq error.status '401'))}}
|
||||||
{{#yield-slot name="disconnected" params=(block-params (action dispatch "RESET"))}}
|
{{#yield-slot name="disconnected" params=(block-params (action dispatch "RESET"))}}
|
||||||
{{yield api}}
|
{{yield api}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if (not eq error.status '401')}}
|
|
||||||
<Notice
|
<Notice
|
||||||
{{notification
|
{{notification
|
||||||
sticky=true
|
sticky=true
|
||||||
|
@ -70,8 +70,8 @@
|
||||||
</p>
|
</p>
|
||||||
</notice.Body>
|
</notice.Body>
|
||||||
</Notice>
|
</Notice>
|
||||||
{{/if}}
|
|
||||||
{{/yield-slot}}
|
{{/yield-slot}}
|
||||||
|
{{/if}}
|
||||||
</State>
|
</State>
|
||||||
{{#if (eq error.status "403")}}
|
{{#if (eq error.status "403")}}
|
||||||
{{#yield-slot name="error"}}
|
{{#yield-slot name="error"}}
|
||||||
|
|
Loading…
Reference in New Issue