Always show endpoint apply (w/ isDisabled) (#3321)
This commit is contained in:
parent
7004fd03fa
commit
7446907d45
@ -122,15 +122,12 @@ function Endpoints ({ className = '', offset, onClose }: Props): React.ReactElem
|
||||
return (
|
||||
<Sidebar
|
||||
button={
|
||||
(hasUrlChanged && isUrlValid)
|
||||
? (
|
||||
<Button
|
||||
icon='sync'
|
||||
label={t<string>('Switch')}
|
||||
onClick={_onApply}
|
||||
/>
|
||||
)
|
||||
: undefined
|
||||
<Button
|
||||
icon='sync'
|
||||
isDisabled={!(hasUrlChanged && isUrlValid)}
|
||||
label={t<string>('Switch')}
|
||||
onClick={_onApply}
|
||||
/>
|
||||
}
|
||||
className={className}
|
||||
offset={offset}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user