@imposium-hub/components 1.43.3 → 1.43.4
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/components/assets/AssetsTableTagsPivot.tsx +2 -2
- package/components/players/ImagePreview.tsx +1 -1
- package/constants/copy.ts +2 -1
- package/dist/components.js +2 -2
- package/dist/components.js.map +1 -1
- package/package.json +1 -1
- package/redux/actions/asset-list.ts +9 -1
- package/services/API.ts +9 -1
|
@@ -34,8 +34,8 @@ class AssetsTableTagsPivot extends React.PureComponent<IAssetsTableTagsPivot, {}
|
|
|
34
34
|
|
|
35
35
|
public render = () : JSX.Element => {
|
|
36
36
|
const {row: {original: {id, tags}}, assetTags} = this.props;
|
|
37
|
-
|
|
38
|
-
const tagsMarkup : JSX.Element[] =
|
|
37
|
+
const tagsArray = [...new Set(tags)];
|
|
38
|
+
const tagsMarkup : JSX.Element[] = tagsArray.map((tag : string) => (
|
|
39
39
|
<Tag
|
|
40
40
|
key = {tag}
|
|
41
41
|
copy = {tag}
|
|
@@ -58,7 +58,7 @@ class ImagePreview extends React.PureComponent<IImagePreviewProps, IImagePreview
|
|
|
58
58
|
onLoad = {() => this.setState({loaded: true})}
|
|
59
59
|
src={url}
|
|
60
60
|
ref={this.imageNode}
|
|
61
|
-
className={`
|
|
61
|
+
className={`media-preview ${!loaded ? 'hidden' : ''}`}
|
|
62
62
|
style={style}
|
|
63
63
|
/>
|
|
64
64
|
</Portal>
|
package/constants/copy.ts
CHANGED
|
@@ -24,7 +24,8 @@ export const assets = {
|
|
|
24
24
|
uploadButton: 'Upload'
|
|
25
25
|
},
|
|
26
26
|
tags: {
|
|
27
|
-
add: 'Add new tag'
|
|
27
|
+
add: 'Add new tag',
|
|
28
|
+
duplicated: 'Duplicated Tags: "[dupedTags]" will not be added.'
|
|
28
29
|
},
|
|
29
30
|
field: {
|
|
30
31
|
fieldMismatchError: 'Asset Type mismatch. Field only accepts "[accepts]" assets.',
|