@capillarytech/creatives-library 6.8.0 → 6.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -339,6 +339,9 @@ export class Gallery extends React.Component { // eslint-disable-line react/pref
|
|
|
339
339
|
if (this.props.isLineAsset) {
|
|
340
340
|
templateData.hoverOption = <CapButton onClick={() => this.props.onGalleryImageSelect(template)}><FormattedMessage {...messages.select} /></CapButton>;
|
|
341
341
|
}
|
|
342
|
+
if (this.props.isLibraryAsset) {
|
|
343
|
+
templateData.hoverOption = <CapButton onClick={() => this.props.onGalleryImageSelect(template)}><FormattedMessage {...messages.select} /></CapButton>;
|
|
344
|
+
}
|
|
342
345
|
const secureFilePath = _.get(template, 'metaInfo.secure_file_path');
|
|
343
346
|
templateData.url = secureFilePath || _.get(template, 'metaInfo.public_url');
|
|
344
347
|
return templateData;
|
|
@@ -13,11 +13,18 @@ const selectGalleryDomain = () => (state) => state.get('gallery');
|
|
|
13
13
|
/**
|
|
14
14
|
* Default selector used by Gallery
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
const initialState = {
|
|
17
|
+
assetList: [],
|
|
18
|
+
assetUploading: false,
|
|
19
|
+
fetchingAllAssets: false,
|
|
20
|
+
};
|
|
21
|
+
const makeSelectGallery = () => {
|
|
22
|
+
return createSelector(
|
|
23
|
+
selectGalleryDomain(),
|
|
24
|
+
(substate) => {
|
|
25
|
+
return substate ? substate.toJS() : initialState;}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
21
28
|
|
|
22
29
|
export default makeSelectGallery;
|
|
23
30
|
export {
|
|
Binary file
|