remove react-loader (not that the controller should be rendering spinners in the first place :(
This commit is contained in:
parent
d4549e60cc
commit
02ad2b5152
3 changed files with 6 additions and 5 deletions
|
@ -19,7 +19,6 @@ limitations under the License.
|
|||
var dis = require("../../dispatcher");
|
||||
var Modal = require("../../Modal");
|
||||
var sdk = require('../../index.js');
|
||||
var Loader = require("react-loader");
|
||||
|
||||
var MatrixClientPeg = require("../../MatrixClientPeg");
|
||||
|
||||
|
@ -39,6 +38,8 @@ module.exports = {
|
|||
if (should_leave) {
|
||||
var d = MatrixClientPeg.get().leave(roomId);
|
||||
|
||||
// FIXME: controller shouldn't be loading a view :(
|
||||
var Loader = sdk.getComponent("atoms.Spinner");
|
||||
var modal = Modal.createDialog(Loader);
|
||||
|
||||
d.then(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue