gd-sprest-react
Advanced tools
Comparing version 2.3.5 to 2.3.6
@@ -350,2 +350,14 @@ "use strict"; | ||
var elAttachments = null; | ||
// See if we are loading the attachments | ||
if (this.state.loadingFl) { | ||
// Render a loading dialog | ||
return (React.createElement(office_ui_fabric_react_1.Spinner, { label: "Loading..." })); | ||
} | ||
// Ensure the files exist | ||
if (this.state.files == null) { | ||
// Load the attachments | ||
this.loadAttachments(); | ||
// Render a loading dialog | ||
return (React.createElement(office_ui_fabric_react_1.Spinner, { label: "Loading..." })); | ||
} | ||
// See if the render method exists | ||
@@ -356,14 +368,2 @@ if (this.props.onRender) { | ||
else { | ||
// See if we are loading the attachments | ||
if (this.state.loadingFl) { | ||
// Render a loading dialog | ||
return (React.createElement(office_ui_fabric_react_1.Spinner, { label: "Loading..." })); | ||
} | ||
// Ensure the files exist | ||
if (this.state.files == null) { | ||
// Load the attachments | ||
this.loadAttachments(); | ||
// Render a loading dialog | ||
return (React.createElement(office_ui_fabric_react_1.Spinner, { label: "Loading..." })); | ||
} | ||
// See if this is the display mode | ||
@@ -370,0 +370,0 @@ if (this.props.controlMode == gd_sprest_1.SPTypes.ControlMode.Display) { |
{ | ||
"name": "gd-sprest-react", | ||
"version": "2.3.5", | ||
"version": "2.3.6", | ||
"description": "SharePoint react components.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
392331