Show membership spinner next to Leave/Join button when leaving/joining

This commit is contained in:
Luke Barnard 2018-04-10 11:49:59 +01:00
parent 0681df71b0
commit 24d4df87d1

View file

@ -994,8 +994,8 @@ export default React.createClass({
return <div className={membershipContainerClasses}>
<div className="mx_GroupView_membershipSubSection">
{ /* Empty div for flex alignment */ }
<div />
{ /* The <div /> is for flex alignment */ }
{ this.state.membershipBusy ? <Spinner /> : <div /> }
<div className="mx_GroupView_membership_buttonContainer">
<AccessibleButton
className={membershipButtonClasses}