Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
C
cms
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pedro-dev_2
cms
Commits
d25edad2
Commit
d25edad2
authored
Jun 03, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* multi uploads fix
* imagery url
parent
3a0bca18
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
.env
.env
+1
-1
imagery.js
src/views/assets/projectassets/card/imagery.js
+1
-1
index.js
src/views/assets/projectassets/card/index.js
+2
-3
No files found.
.env
View file @
d25edad2
...
...
@@ -2,4 +2,4 @@ SKIP_PREFLIGHT_CHECK=true
REACT_APP_BASENAME=/cms
REACT_APP_API="http://192.168.99.100:8001/cms"
REACT_APP_API1="http://134.209.18.22/cmsapi"
IMAGERY=""http://134.209.18.22
/imagery"
REACT_APP_IMAGERY="http://192.168.99.100:8001
/imagery"
src/views/assets/projectassets/card/imagery.js
View file @
d25edad2
...
...
@@ -19,7 +19,7 @@ const BlocoImage = ({title, img, handelImageChange}) => {
useEffect
(()
=>
{
if
(
img
!==
null
&&
img
!==
undefined
)
{
return
setImgd
(
`
${
process
.
env
.
IMAGERY
}
/
${
img
}
`
)
return
setImgd
(
`
${
process
.
env
.
REACT_APP_
IMAGERY
}
/
${
img
}
`
)
}
},
[
img
])
...
...
src/views/assets/projectassets/card/index.js
View file @
d25edad2
...
...
@@ -190,14 +190,13 @@ const handleError = (text) => {
updateSubGenres
(
value
)
},
handleImageryChange
=
(
prop
,
file
,
lang
)
=>
{
let
newUpload
=
uploadFiles
.
filter
(
elm
=>
elm
.
type
!==
prop
)
let
newUpload
=
uploadFiles
.
filter
(
elm
=>
elm
.
type
!==
prop
||
elm
.
langcode
.
langcode
!==
lang
.
langcode
)
newUpload
=
newUpload
.
concat
({
type
:
prop
,
langcode
:
lang
,
obj
:
file
})
setUploadFile
(
newUpload
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment