1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

remove react-loader (not that the controller should be rendering spinners in the first place :(

This commit is contained in:
Matthew Hodgson
2015-11-10 18:25:10 +00:00
parent d4549e60cc
commit 02ad2b5152
3 changed files with 6 additions and 5 deletions

View File

@@ -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() {