diff --git a/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/__snapshots__/index.test.jsx.snap b/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/__snapshots__/index.test.jsx.snap
index fd2b660d1e..587f4ce227 100644
--- a/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/__snapshots__/index.test.jsx.snap
+++ b/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/__snapshots__/index.test.jsx.snap
@@ -59,7 +59,7 @@ exports[`SelectImageModal component snapshot 1`] = `
"id": "authoring.texteditor.selectimagemodal.next.label",
},
"fetchError": {
- "defaultMessage": "Failed to obtain course images. Please try again.",
+ "defaultMessage": "Failed to obtain images. Please try again.",
"description": "Message presented to user when images are not found",
"id": "authoring.texteditor.selectimagemodal.error.fetchImagesError",
},
diff --git a/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/index.jsx b/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/index.jsx
index 81e4802cb7..0e0439a58b 100644
--- a/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/index.jsx
+++ b/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/index.jsx
@@ -17,6 +17,7 @@ const SelectImageModal = ({
isLoaded,
isFetchError,
isUploadError,
+ isLibrary,
imageCount,
}) => {
const {
@@ -57,6 +58,7 @@ const SelectImageModal = ({
isLoaded,
isFetchError,
isUploadError,
+ isLibrary,
}}
/>
);
@@ -73,12 +75,14 @@ SelectImageModal.propTypes = {
isFetchError: PropTypes.bool.isRequired,
isUploadError: PropTypes.bool.isRequired,
imageCount: PropTypes.number.isRequired,
+ isLibrary: PropTypes.bool,
};
export const mapStateToProps = (state) => ({
isLoaded: selectors.requests.isFinished(state, { requestKey: RequestKeys.fetchImages }),
isFetchError: selectors.requests.isFailed(state, { requestKey: RequestKeys.fetchImages }),
isUploadError: selectors.requests.isFailed(state, { requestKey: RequestKeys.uploadAsset }),
+ isLibrary: selectors.app.isLibrary(state),
imageCount: state.app.imageCount,
});
diff --git a/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/messages.js b/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/messages.js
index f39c307798..14794b641f 100644
--- a/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/messages.js
+++ b/src/editors/sharedComponents/ImageUploadModal/SelectImageModal/messages.js
@@ -56,7 +56,7 @@ const messages = defineMessages({
},
fetchImagesError: {
id: 'authoring.texteditor.selectimagemodal.error.fetchImagesError',
- defaultMessage: 'Failed to obtain course images. Please try again.',
+ defaultMessage: 'Failed to obtain images. Please try again.',
description: 'Message presented to user when images are not found',
},
fileSizeError: {
diff --git a/src/editors/sharedComponents/SelectionModal/Gallery.jsx b/src/editors/sharedComponents/SelectionModal/Gallery.jsx
index 1e01a109fb..fc71e81cb3 100644
--- a/src/editors/sharedComponents/SelectionModal/Gallery.jsx
+++ b/src/editors/sharedComponents/SelectionModal/Gallery.jsx
@@ -23,6 +23,7 @@ const Gallery = ({
showIdsOnCards,
height,
isLoaded,
+ isLibrary,
thumbnailFallback,
allowLazyLoad,
fetchNextPage,
@@ -79,7 +80,7 @@ const Gallery = ({
/>
)) }
- {allowLazyLoad && (
+ {(allowLazyLoad && !isLibrary) && (