Skip to content

Commit

Permalink
Fix channel change issue by disabling until loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
bipuladh committed Apr 13, 2020
1 parent 4b02375 commit 2bb7094
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,13 @@ export class SubscriptionUpdates extends React.Component<
{this.state.waitingForUpdate ? (
<LoadingInline />
) : (
<Button type="button" isInline onClick={() => channelModal()} variant="link">
<Button
type="button"
isInline
onClick={channelModal}
variant={!pkg ? 'plain' : 'link'}
isDisabled={!pkg}
>
{obj.spec.channel || 'default'}
<PencilAltIcon className="co-icon-space-l pf-c-button-icon--plain" />
</Button>
Expand Down

0 comments on commit 2bb7094

Please sign in to comment.