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
64768c25
Commit
64768c25
authored
Jul 07, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menuPages reload fix
parent
db164d0e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
15 deletions
+25
-15
index.js
src/views/menupages/mainpages/card/index.js
+13
-8
manageplaylist.js
src/views/menupages/mainpages/card/manageplaylist.js
+1
-1
playlists.js
src/views/playlists/store/actions/playlists.js
+11
-6
No files found.
src/views/menupages/mainpages/card/index.js
View file @
64768c25
...
...
@@ -152,13 +152,6 @@ const handleError = (text) => {
q
:
null
}))
}
if
(
playlistsStore
.
allDataPlaylists
===
null
||
playlistsStore
.
allDataPlaylists
.
length
<
1
)
{
dispatch
(
getData_playlists
({
start
:
0
,
length
:
1000
,
q
:
''
}))
}
},
[
dispatch
])
useEffect
(()
=>
{
setPagetypes
(
settingStore
.
allDataPagetypes
)
...
...
@@ -178,6 +171,18 @@ const handleError = (text) => {
setLayoumenu
(
screensStore
.
allDataLayoutMenus
)
},
[
screensStore
.
allDataLayoutMenus
])
useEffect
(()
=>
{
if
(
!
dataElement
)
return
if
(
playlistsStore
.
allDataPlaylists
===
null
||
playlistsStore
.
allDataPlaylists
.
length
<
1
)
{
dispatch
(
getData_playlists
({
start
:
0
,
length
:
1000
,
idproject
:
dataElement
.
idproject
,
q
:
''
}))
}
},
[
dataElement
])
return
(
<
Fragment
>
<
Form
...
...
src/views/menupages/mainpages/card/manageplaylist.js
View file @
64768c25
...
...
@@ -161,7 +161,7 @@ const ManagePlaylist = ({dataElement, selectedDataElement, handleChange}) => {
getData
=
{
getData_avaliablePlaylists
}
serverSideColumns
=
{
serverSideColumnsRight
}
// linkAddButton={`/add`}
total
=
{
store
.
totalPlaylists
}
total
=
{
avaliablePlaylists
.
length
}
/
>
<
/Col
>
...
...
src/views/playlists/store/actions/playlists.js
View file @
64768c25
...
...
@@ -23,12 +23,17 @@ const _getData_playlists = params => {
}
}
export
const
getData_playlists
=
params
=>
{
const
currentProject
=
store
.
getState
().
navbar
.
projectCurrent
if
(
!!
params
.
idproject
&&
params
.
idproject
!==
null
)
{
return
_getData_playlists
(
params
)
}
const
currentProject
=
store
.
getState
().
navbar
.
projectCurrent
const
newparams
=
{
...
params
,
idproject
:
!
currentProject
?
'%'
:
currentProject
.
value
}
return
_getData_playlists
(
newparams
)
}
...
...
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