diff --git a/web/client/components/catalog/Catalog.jsx b/web/client/components/catalog/Catalog.jsx index a4991bcaaf..3697b2b890 100644 --- a/web/client/components/catalog/Catalog.jsx +++ b/web/client/components/catalog/Catalog.jsx @@ -20,6 +20,7 @@ const Message = require("../I18N/Message"); const OverlayTrigger = require('../misc/OverlayTrigger'); const RecordGrid = require("./RecordGrid"); const SwitchPanel = require("../misc/switch/SwitchPanel"); +const Loader = require('../misc/Loader'); require('react-select/dist/react-select.css'); require('react-quill/dist/quill.snow.css'); @@ -186,8 +187,9 @@ class Catalog extends React.Component { }; renderLoading = () => { - return this.props.loading ? : null; - }; + return (
); + } + renderSaving = () => { return this.props.saving ? : null; }; @@ -210,7 +212,6 @@ class Catalog extends React.Component { onSelect={this.handlePage} />
- {this.renderLoading()}
); } @@ -270,8 +271,8 @@ class Catalog extends React.Component { if (this.props.mode === "view" ) { if (this.props.includeSearchButton) { buttons.push(); } if (this.props.includeResetButton) { @@ -314,11 +315,13 @@ class Catalog extends React.Component { renderFormats = () => { return this.props.formats.map((format) => ); }; + getServices = () => { return Object.keys(this.props.services).map(s => { return assign({}, this.props.services[s], {label: this.props.services[s].title, value: s}); }); }; + render() { const showTemplate = !isNil(this.props.newService.showTemplate) ? this.props.newService.showTemplate : false; return ( @@ -359,9 +362,7 @@ class Catalog extends React.Component { )} footer={this.renderPagination()}> -
- {this.renderResult()} -
+ { this.props.loading ? this.renderLoading() : this.renderResult() } ) : ( * { + margin: auto; + } + } /* needed to avoid an error with Firefox where the width was not properly calculated #3824 */ .ms2-border-layout-body.catalog { + position: relative; display: block !important; } }