mirror of https://github.com/vector-im/riot-web
Change comments
parent
31e9979285
commit
fca7325b20
|
@ -673,7 +673,8 @@ export default React.createClass({
|
||||||
_onAcceptInviteClick: async function() {
|
_onAcceptInviteClick: async function() {
|
||||||
this.setState({membershipBusy: true});
|
this.setState({membershipBusy: true});
|
||||||
|
|
||||||
// Wait 500ms to prevent flashing
|
// Wait 500ms to prevent flashing. Do this before sending a request otherwise we risk the
|
||||||
|
// spinner disappearing after we have fetched new group data.
|
||||||
await Promise.delay(500);
|
await Promise.delay(500);
|
||||||
|
|
||||||
this._groupStore.acceptGroupInvite().then(() => {
|
this._groupStore.acceptGroupInvite().then(() => {
|
||||||
|
@ -691,7 +692,8 @@ export default React.createClass({
|
||||||
_onRejectInviteClick: async function() {
|
_onRejectInviteClick: async function() {
|
||||||
this.setState({membershipBusy: true});
|
this.setState({membershipBusy: true});
|
||||||
|
|
||||||
// Wait 500ms to prevent flashing
|
// Wait 500ms to prevent flashing. Do this before sending a request otherwise we risk the
|
||||||
|
// spinner disappearing after we have fetched new group data.
|
||||||
await Promise.delay(500);
|
await Promise.delay(500);
|
||||||
|
|
||||||
this._groupStore.leaveGroup().then(() => {
|
this._groupStore.leaveGroup().then(() => {
|
||||||
|
@ -709,7 +711,8 @@ export default React.createClass({
|
||||||
_onJoinClick: async function() {
|
_onJoinClick: async function() {
|
||||||
this.setState({membershipBusy: true});
|
this.setState({membershipBusy: true});
|
||||||
|
|
||||||
// Wait 500ms to prevent flashing
|
// Wait 500ms to prevent flashing. Do this before sending a request otherwise we risk the
|
||||||
|
// spinner disappearing after we have fetched new group data.
|
||||||
await Promise.delay(500);
|
await Promise.delay(500);
|
||||||
|
|
||||||
this._groupStore.joinGroup().then(() => {
|
this._groupStore.joinGroup().then(() => {
|
||||||
|
@ -736,7 +739,8 @@ export default React.createClass({
|
||||||
|
|
||||||
this.setState({membershipBusy: true});
|
this.setState({membershipBusy: true});
|
||||||
|
|
||||||
// Wait 500ms to prevent flashing
|
// Wait 500ms to prevent flashing. Do this before sending a request otherwise we risk the
|
||||||
|
// spinner disappearing after we have fetched new group data.
|
||||||
await Promise.delay(500);
|
await Promise.delay(500);
|
||||||
|
|
||||||
this._groupStore.leaveGroup().then(() => {
|
this._groupStore.leaveGroup().then(() => {
|
||||||
|
|
Loading…
Reference in New Issue