mirror of https://github.com/vector-im/riot-web
Set loading: false when iFrame finishes loading
parent
6345e474f5
commit
cf8077e605
|
@ -359,6 +359,7 @@ export default class AppTile extends React.Component {
|
||||||
if (!this.widgetMessaging) {
|
if (!this.widgetMessaging) {
|
||||||
this._onInitialLoad();
|
this._onInitialLoad();
|
||||||
}
|
}
|
||||||
|
this.setState({loading: false});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -396,8 +397,6 @@ export default class AppTile extends React.Component {
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(`Failed to get capabilities for widget type ${this.props.type}`, this.props.id, err);
|
console.log(`Failed to get capabilities for widget type ${this.props.type}`, this.props.id, err);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.setState({loading: false});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_onWidgetAction(payload) {
|
_onWidgetAction(payload) {
|
||||||
|
|
Loading…
Reference in New Issue