diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index a005406133..db722bd66d 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -221,6 +221,10 @@ export default React.createClass({ }, "mx_IntegrationsManager"); }, + _onSnapshotClick(e) { + console.log("Snapshot widget ID ", this.props.id); + }, + /* If user has permission to modify widgets, delete the widget, * otherwise revoke access for the widget to load in the user's browser */ @@ -379,11 +383,25 @@ export default React.createClass({ deleteClasses += ' mx_AppTileMenuBarWidgetDelete'; } + // Picture snapshot + const showPictureSnapshotButton = true; // FIXME - Make this dynamic + const showPictureSnapshotIcon = 'img/camera_green.svg'; + return (
{ this.formatAppTileName() } + { /* Snapshot widget */ } + { showPictureSnapshotButton && } + { /* Edit widget */ } { showEditButton &&