mirror of https://github.com/status-im/consul.git
ui: Ensure disconnect error doesn't appear w/auth change on some pages (#11905)
This commit is contained in:
parent
6bef2b2eb4
commit
72e5d7e1d4
|
@ -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}}
|
||||
{{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