fix: selection allowed for source of active status even for loading
@@ -33,7 +33,7 @@ export const DvConnectionCard: React.FunctionComponent<
> = props => {
const doToggleSelected = (connName: string) => (event: any) => {
// User can only select active connections that are not loading
- if (props.dvStatus === ConnectionStatus.ACTIVE && props.loading === false) {
+ if (props.dvStatus === ConnectionStatus.ACTIVE) {
props.onSelectionChanged(connName, !props.selected);
}
};
@@ -47,7 +47,15 @@ export const DvConnectionCard: React.FunctionComponent<
onClick={doToggleSelected(props.name)}
>
<CardHeader>
- {props.loading ? <Spinner loading={true} inline={true} /> : <></>}
+ {props.loading ? (
+ props.dvStatus !== ConnectionStatus.ACTIVE ? (
+ <Spinner loading={true} inline={true} />
+ ) : (
+ <></>
+ )
+ ) : (
+ <></>
+ )}
<Label
className="dv-connection-card__status"
type={
