diff --git a/package.json b/package.json index ce5b61ce1..4c9d7b100 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "moment-duration-format": "^2.3.2", "moment-timezone": "^0.5.33", "node-sass": "^7.0.1", - "openstack-uicore-foundation": "4.1.91-beta.7", + "openstack-uicore-foundation": "4.1.91-beta.8", "path-browserify": "^1.0.1", "postcss-loader": "^6.2.1", "process": "^0.11.10", diff --git a/src/components/forms/event-material-form.js b/src/components/forms/event-material-form.js index c3cb182b0..9e2dae3c5 100644 --- a/src/components/forms/event-material-form.js +++ b/src/components/forms/event-material-form.js @@ -50,8 +50,6 @@ class EventMaterialForm extends React.Component { errors: props.errors }; - this.fileUploadUrl = `${window.FILE_UPLOAD_API_BASE_URL}/api/v1/files/upload`; - this.handleChange = this.handleChange.bind(this); this.handleChangeMUType = this.handleChangeMUType.bind(this); this.handleSubmit = this.handleSubmit.bind(this); @@ -287,7 +285,7 @@ class EventMaterialForm extends React.Component { onUploadComplete={this.onMediaUploadComplete} value={mediaInputValue} mediaType={slideMediaType} - postUrl={this.fileUploadUrl} + postUrl={`${window.FILE_UPLOAD_API_BASE_URL}/api/v1/files/upload`} error={hasErrors("slide", errors)} djsConfig={{ withCredentials: true }} parallelChunkUploads @@ -358,7 +356,7 @@ class EventMaterialForm extends React.Component { value={mediaInputValue} mediaType={media_type} onRemove={this.handleRemoveFile} - // postUrl={this.fileUploadUrl} + postUrl={`${window.FILE_UPLOAD_API_BASE_URL}/api/v1/files/upload`} error={hasErrors(media_type.name, errors)} djsConfig={{ withCredentials: true }} parallelChunkUploads diff --git a/yarn.lock b/yarn.lock index 102f5e93e..7f688618b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9846,10 +9846,10 @@ open@^8.0.9: is-docker "^2.1.1" is-wsl "^2.2.0" -openstack-uicore-foundation@4.1.91-beta.4: - version "4.1.91-beta.4" - resolved "https://registry.yarnpkg.com/openstack-uicore-foundation/-/openstack-uicore-foundation-4.1.91-beta.4.tgz#23484a24e864b4dd5915e731e038bfd0a286ba89" - integrity sha512-HyBFsRc7pGpq2uI+rMb9Keg0ikClTk8xC9UhIt1hzV/GndZ3E6OULRS5tLv8wvDQC86NIQg7sbDmHejH/DvMwA== +openstack-uicore-foundation@4.1.91-beta.8: + version "4.1.91-beta.8" + resolved "https://registry.yarnpkg.com/openstack-uicore-foundation/-/openstack-uicore-foundation-4.1.91-beta.8.tgz#7e02f341768f02ff3c9b5a829e0163168599ce09" + integrity sha512-MdZZjQ772/gOOB8gR1pnzy5/rYISH/sJI+9NeyIB5KH246e/lsywn/vUe9sGB87L2yTFJ7Ha2brzryfrN8UNOw== optionator@^0.9.1: version "0.9.4" @@ -9901,13 +9901,6 @@ p-limit@^3.0.2, p-limit@^3.1.0: dependencies: yocto-queue "^0.1.0" -p-limit@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-6.1.0.tgz#d91f9364d3fdff89b0a45c70d04ad4e0df30a0e8" - integrity sha512-H0jc0q1vOzlEk0TqAKXKZxdl7kX3OFUzCnNVUnq5Pc3DGo0kpeaMuPqxQn235HibwBEb0/pm9dgKTjXy66fBkg== - dependencies: - yocto-queue "^1.1.1" - p-locate@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" @@ -13470,11 +13463,6 @@ yocto-queue@^0.1.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== -yocto-queue@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.1.1.tgz#fef65ce3ac9f8a32ceac5a634f74e17e5b232110" - integrity sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g== - yoga-layout@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/yoga-layout/-/yoga-layout-2.0.1.tgz#4bc686abe2464f977866650ddccc1dbcf9f0d03c"