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
23a8e128
Commit
23a8e128
authored
May 28, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avalibilit muti locations fix
parent
718a02d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
avaliability.js
src/views/assets/projectassets/card/avaliability.js
+29
-1
No files found.
src/views/assets/projectassets/card/avaliability.js
View file @
23a8e128
...
@@ -116,9 +116,37 @@ const PlanAvaliability = ({dataElement, handleElmChange}) => {
...
@@ -116,9 +116,37 @@ const PlanAvaliability = ({dataElement, handleElmChange}) => {
}
}
}
}
})
})
let
coValues
if
(
actionValue
===
'permit'
)
{
coValues
=
denytGeo
.
map
(
elm
=>
{
return
{
id
:
elm
.
value
,
name
:
elm
.
label
,
pivot
:
{
idgeolocation
:
elm
.
value
,
idavailability
:
dataElement
.
id
,
action
:
'deny'
}
}
})
}
else
{
coValues
=
permitGeo
.
map
(
elm
=>
{
return
{
id
:
elm
.
value
,
name
:
elm
.
label
,
pivot
:
{
idgeolocation
:
elm
.
value
,
idavailability
:
dataElement
.
id
,
action
:
'permit'
}
}
})
}
const
geoparts
=
newValue
.
concat
(
coValues
)
const
newData
=
{
const
newData
=
{
...
dataElement
,
...
dataElement
,
geolocations
:
newValue
geolocations
:
geoparts
}
}
handleElmChange
(
newData
)
handleElmChange
(
newData
)
},
},
...
...
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