@@ -59,7 +59,8 @@ export default React.createClass({
59
59
} ,
60
60
61
61
/**
62
- * Set initial component state when the App wUrl (widget URL) is being updated. Component props *must* be passed (rather than relying on this.props).
62
+ * Set initial component state when the App wUrl (widget URL) is being updated.
63
+ * Component props *must* be passed (rather than relying on this.props).
63
64
* @param {Object } newProps The new properties of the component
64
65
* @return {Object } Updated component state to be set with setState
65
66
*/
@@ -71,7 +72,8 @@ export default React.createClass({
71
72
loading : true , // True while the iframe content is loading
72
73
widgetUrl : newProps . url ,
73
74
widgetPermissionId : widgetPermissionId ,
74
- // Assume that widget has permission to load if we are the user who added it to the room, or if explicitly granted by the user
75
+ // Assume that widget has permission to load if we are the user who
76
+ // added it to the room, or if explicitly granted by the user
75
77
hasPermissionToLoad : hasPermissionToLoad === 'true' || newProps . userId === newProps . creatorUserId ,
76
78
error : null ,
77
79
deleting : false ,
@@ -218,7 +220,8 @@ export default React.createClass({
218
220
} , "mx_IntegrationsManager" ) ;
219
221
} ,
220
222
221
- /* If user has permission to modify widgets, delete the widget, otherwise revoke access for the widget to load in the user's browser
223
+ /* If user has permission to modify widgets, delete the widget,
224
+ * otherwise revoke access for the widget to load in the user's browser
222
225
*/
223
226
_onDeleteClick ( ) {
224
227
if ( this . _canUserModify ( ) ) {
0 commit comments