Prevent duplicate server display during profile transitions
This commit is contained in:
@@ -29,6 +29,7 @@ interface ServerPickerRenderState {
|
||||
disabled: boolean;
|
||||
leaving: boolean;
|
||||
revealVersion: number;
|
||||
anchorServerId: string;
|
||||
}
|
||||
|
||||
interface SubscriptionFeatureOptions {
|
||||
@@ -464,9 +465,11 @@ function ProfileGroup({
|
||||
|
||||
{localStatus && <div className="client-profile-local-status" role="status">{localStatus}</div>}
|
||||
|
||||
{!expanded && !closing && visibleServer && <button
|
||||
{visibleServer && <button
|
||||
className="client-profile-selected-server"
|
||||
type="button"
|
||||
aria-expanded={expanded}
|
||||
aria-controls={`client-profile-${profile.id}`}
|
||||
onClick={() => feature.toggleProfile(profile.id)}
|
||||
>
|
||||
<span aria-hidden="true" />
|
||||
@@ -486,6 +489,7 @@ function ProfileGroup({
|
||||
disabled: controlsBlocked,
|
||||
leaving: false,
|
||||
revealVersion: feature.revealVersions[profile.id] || 0,
|
||||
anchorServerId: visibleServer?.id || '',
|
||||
})}
|
||||
</div>
|
||||
</div>}
|
||||
|
||||
Reference in New Issue
Block a user