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="disconnected">
|
||||
{{#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')}}
|
||||
<Notice
|
||||
{{notification
|
||||
sticky=true
|
||||
|
@ -70,8 +70,8 @@
|
|||
</p>
|
||||
</notice.Body>
|
||||
</Notice>
|
||||
{{/if}}
|
||||
{{/yield-slot}}
|
||||
{{/if}}
|
||||
</State>
|
||||
{{#if (eq error.status "403")}}
|
||||
{{#yield-slot name="error"}}
|
||||
|
|
Loading…
Reference in New Issue