mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Move ImageView
This commit is contained in:
parent
3f120c7027
commit
0a8f5b6223
@ -20,7 +20,7 @@ var React = require('react');
|
||||
|
||||
var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg');
|
||||
|
||||
var DateUtils = require('../../../../DateUtils');
|
||||
var DateUtils = require('../../../DateUtils');
|
||||
var filesize = require('filesize');
|
||||
|
||||
module.exports = React.createClass({
|
||||
@ -30,7 +30,8 @@ module.exports = React.createClass({
|
||||
onFinished: React.PropTypes.func.isRequired
|
||||
},
|
||||
|
||||
// XXX: keyboard shortcuts for managing dialogs should be done by the modal dialog base class somehow, surely...
|
||||
// XXX: keyboard shortcuts for managing dialogs should be done by the modal
|
||||
// dialog base class somehow, surely...
|
||||
componentDidMount: function() {
|
||||
document.addEventListener("keydown", this.onKeyDown);
|
||||
},
|
@ -25,16 +25,16 @@ var skin = {};
|
||||
|
||||
// Vector-specific stuff
|
||||
skin['elements.Spinner'] = require('../../components/views/elements/Spinner');
|
||||
skin['elements.ImageView'] = require('../../components/views/elements/ImageView');
|
||||
skin['messages.MessageTimestamp'] = require('../../components/views/messages/MessageTimestamp');
|
||||
|
||||
// TODO: Fix this so matrix-react-sdk stuff is in react SDK skindex
|
||||
// TODO: Fix this so matrix-react-sdk stuff is in react SDK skindex?
|
||||
skin['avatars.RoomAvatar'] = require('matrix-react-sdk/lib/components/views/avatars/RoomAvatar');
|
||||
skin['avatars.MemberAvatar'] = require('matrix-react-sdk/lib/components/views/avatars/MemberAvatar');
|
||||
|
||||
// Old style stuff
|
||||
skin['atoms.EditableText'] = require('./views/atoms/EditableText');
|
||||
skin['atoms.EnableNotificationsButton'] = require('./views/atoms/EnableNotificationsButton');
|
||||
skin['atoms.ImageView'] = require('./views/atoms/ImageView');
|
||||
skin['atoms.create_room.CreateRoomButton'] = require('./views/atoms/create_room/CreateRoomButton');
|
||||
skin['atoms.create_room.Presets'] = require('./views/atoms/create_room/Presets');
|
||||
skin['atoms.create_room.RoomAlias'] = require('./views/atoms/create_room/RoomAlias');
|
||||
|
@ -53,7 +53,7 @@ module.exports = React.createClass({
|
||||
ev.preventDefault();
|
||||
var content = this.props.mxEvent.getContent();
|
||||
var httpUrl = MatrixClientPeg.get().mxcUrlToHttp(content.url);
|
||||
var ImageView = sdk.getComponent("atoms.ImageView");
|
||||
var ImageView = sdk.getComponent("elements.ImageView");
|
||||
Modal.createDialog(ImageView, {
|
||||
src: httpUrl,
|
||||
width: content.info.w,
|
||||
|
Loading…
Reference in New Issue
Block a user