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
befd5801
Commit
befd5801
authored
May 20, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
basic asset crud
parent
41ddd740
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
125 additions
and
106 deletions
+125
-106
assets.js
src/navigation/global/assets.js
+17
-0
playllists.js
src/navigation/global/playllists.js
+5
-5
assets.js
src/router/routes/assets.js
+33
-0
index.js
src/router/routes/index.js
+3
-1
index.js
src/views/assets/index.js
+0
-0
index.js
src/views/assets/projectassets/add/index.js
+12
-17
index.js
src/views/assets/projectassets/card/index.js
+35
-62
index.js
src/views/assets/projectassets/edit/index.js
+1
-1
main.js
src/views/assets/projectassets/edit/main.js
+12
-13
index.js
src/views/assets/projectassets/index.js
+1
-1
table.js
src/views/assets/projectassets/table.js
+5
-5
index.js
src/views/assets/store/reducer/index.js
+1
-1
No files found.
src/navigation/global/assets.js
0 → 100644
View file @
befd5801
import
{
Package
,
Briefcase
,
HardDrive
,
Globe
,
Flag
}
from
'react-feather'
export
default
[
{
id
:
'Playlists'
,
title
:
'Playlists'
,
icon
:
<
Package
/>
,
children
:
[
{
id
:
'playlistsDash'
,
title
:
'Project Playlists'
,
icon
:
<
Briefcase
/>
,
navLink
:
'/playlists/projectplaylists'
}
]
}
]
\ No newline at end of file
src/navigation/global/playllists.js
View file @
befd5801
...
@@ -2,15 +2,15 @@ import { Package, Briefcase, HardDrive, Globe, Flag } from 'react-feather'
...
@@ -2,15 +2,15 @@ import { Package, Briefcase, HardDrive, Globe, Flag } from 'react-feather'
export
default
[
export
default
[
{
{
id
:
'
Playlis
ts'
,
id
:
'
Asse
ts'
,
title
:
'
Playlis
ts'
,
title
:
'
Asse
ts'
,
icon
:
<
Package
/>
,
icon
:
<
Package
/>
,
children
:
[
children
:
[
{
{
id
:
'
playlis
tsDash'
,
id
:
'
asse
tsDash'
,
title
:
'Project
Playlis
ts'
,
title
:
'Project
Asse
ts'
,
icon
:
<
Briefcase
/>
,
icon
:
<
Briefcase
/>
,
navLink
:
'/
playlists/projectplaylis
ts'
navLink
:
'/
assets/projectasse
ts'
}
}
]
]
}
}
...
...
src/router/routes/assets.js
0 → 100644
View file @
befd5801
import
{
lazy
}
from
'react'
import
{
Redirect
}
from
'react-router-dom'
const
AssetsRoutes
=
[
// settingss
{
path
:
'/assets/projectassets/edit'
,
exact
:
true
,
component
:
()
=>
<
Redirect
to
=
'/assets/projectassets/edit/1'
/>
},
{
path
:
'/assets/projectassets/edit/:id'
,
component
:
lazy
(()
=>
import
(
'../../views/assets/projectassets/edit'
)),
meta
:
{
navLink
:
'/assets/projectassets/edit'
}
},
{
path
:
'/assets/projectassets/add'
,
component
:
lazy
(()
=>
import
(
'../../views/assets/projectassets/add'
)),
meta
:
{
navLink
:
'/assets/projectassets/add'
}
},
{
path
:
'/assets/projectassets'
,
component
:
lazy
(()
=>
import
(
'../../views/assets/projectassets'
))
}
]
export
default
AssetsRoutes
src/router/routes/index.js
View file @
befd5801
...
@@ -13,6 +13,7 @@ import SettingsRoutes from './Settings'
...
@@ -13,6 +13,7 @@ import SettingsRoutes from './Settings'
import
ScreensRoutes
from
'./screens'
import
ScreensRoutes
from
'./screens'
import
MenuPagesRoutes
from
'./menupages'
import
MenuPagesRoutes
from
'./menupages'
import
PlaylistsRoutes
from
'./playlists'
import
PlaylistsRoutes
from
'./playlists'
import
AssetsRoutes
from
'./assets'
// ** Document title
// ** Document title
const
TemplateTitle
=
'%s - Vuexy React Admin Template'
const
TemplateTitle
=
'%s - Vuexy React Admin Template'
...
@@ -34,7 +35,8 @@ const Routes = [
...
@@ -34,7 +35,8 @@ const Routes = [
...
ScreensRoutes
,
...
ScreensRoutes
,
...
PlaylistsRoutes
,
...
PlaylistsRoutes
,
...
MenuPagesRoutes
,
...
MenuPagesRoutes
,
...
SettingsRoutes
...
SettingsRoutes
,
...
AssetsRoutes
]
]
export
{
DefaultRoute
,
TemplateTitle
,
Routes
}
export
{
DefaultRoute
,
TemplateTitle
,
Routes
}
src/views/assets/index.js
deleted
100644 → 0
View file @
41ddd740
src/views/assets/projectassets/add/index.js
View file @
befd5801
...
@@ -3,7 +3,7 @@ import { Fragment } from 'react'
...
@@ -3,7 +3,7 @@ import { Fragment } from 'react'
import
{
Link
}
from
'react-router-dom'
import
{
Link
}
from
'react-router-dom'
// ** Store & Actions
// ** Store & Actions
import
{
add
playlis
t
}
from
'../../store/actions'
import
{
add
asse
t
}
from
'../../store/actions'
import
{
useDispatch
}
from
'react-redux'
import
{
useDispatch
}
from
'react-redux'
// ** Custom Components
// ** Custom Components
...
@@ -23,13 +23,12 @@ const Tables = () => {
...
@@ -23,13 +23,12 @@ const Tables = () => {
const
dispatch
=
useDispatch
()
const
dispatch
=
useDispatch
()
const
onSubmitHandler
=
values
=>
{
const
onSubmitHandler
=
values
=>
{
dispatch
(
dispatch
(
add
playlis
t
({
add
asse
t
({
idproject
:
values
.
idproject
,
projectid
:
values
.
projectid
,
title
:
values
.
title
,
title
:
values
.
title
,
layout_id
:
values
.
layout_id
,
parentid
:
values
.
parentid
,
dynamic
:
values
.
dynamic
,
parenttype
:
values
.
parenttype
,
special
:
values
.
special
,
external_id
:
values
.
external_id
special_id
:
values
.
special_id
}
}
)
)
)
)
...
@@ -37,7 +36,7 @@ const Tables = () => {
...
@@ -37,7 +36,7 @@ const Tables = () => {
return
(
return
(
<
Fragment
>
<
Fragment
>
<
Breadcrumbs
breadCrumbTitle
=
'
Playlists'
breadCrumbParent
=
'Playlis
ts'
breadCrumbActive
=
{
moduleSettings
.
mainTitle
}
/
>
<
Breadcrumbs
breadCrumbTitle
=
'
Assets'
breadCrumbParent
=
'Asse
ts'
breadCrumbActive
=
{
moduleSettings
.
mainTitle
}
/
>
<
Row
>
<
Row
>
<
Col
sm
=
'12'
>
<
Col
sm
=
'12'
>
<
Link
to
=
{
moduleSettings
.
baseURL
}
>
Back
to
{
moduleSettings
.
mainTitle
}
<
/Link
>
<
Link
to
=
{
moduleSettings
.
baseURL
}
>
Back
to
{
moduleSettings
.
mainTitle
}
<
/Link
>
...
@@ -52,15 +51,11 @@ const Tables = () => {
...
@@ -52,15 +51,11 @@ const Tables = () => {
<
div
className
=
"card-body"
>
<
div
className
=
"card-body"
>
<
ElementCard
selectedElement
=
{{
<
ElementCard
selectedElement
=
{{
id
:
'<generate>'
,
id
:
'<generate>'
,
idproject
:
'2'
,
projectid
:
'2'
,
system_name
:
''
,
title
:
''
,
last_seen
:
''
,
parentid
:
null
,
layout_page_id
:
''
,
parenttype
:
null
,
type
:
''
,
external_id
:
''
display
:
''
,
pagetypeid
:
''
,
order
:
'0'
,
menu_page_layouts
:
[]
}}
}}
onSubmitHandler
=
{
onSubmitHandler
}
onSubmitHandler
=
{
onSubmitHandler
}
/
>
/
>
...
...
src/views/assets/projectassets/card/index.js
View file @
befd5801
...
@@ -86,10 +86,9 @@ const handleError = (text) => {
...
@@ -86,10 +86,9 @@ const handleError = (text) => {
...
dataElement
,
...
dataElement
,
idproject
:
values
.
idproject
,
idproject
:
values
.
idproject
,
title
:
values
.
title
,
title
:
values
.
title
,
layout_id
:
values
.
layout_id
,
parentid
:
values
.
parentid
,
dynamic
:
values
.
dynamic
,
parenttype
:
values
.
parenttype
,
special
:
values
.
special
,
external_id
:
values
.
external_id
special_id
:
values
.
special_id
}
}
onSubmitHandler
(
submitElement
)
onSubmitHandler
(
submitElement
)
...
@@ -185,12 +184,12 @@ return (
...
@@ -185,12 +184,12 @@ return (
<
Input
<
Input
readOnly
=
{
true
}
readOnly
=
{
true
}
type
=
'text'
type
=
'text'
name
=
'
idproject
'
name
=
'
projectid
'
id
=
'
idproject
'
id
=
'
projectid
'
innerRef
=
{
register
({
required
:
true
})}
innerRef
=
{
register
({
required
:
true
})}
placeholder
=
'
idproject
'
placeholder
=
'
projectid
'
defaultValue
=
{
dataElement
&&
dataElement
.
idproject
}
defaultValue
=
{
dataElement
&&
dataElement
.
projectid
}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'
idproject
'
]
})}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'
projectid
'
]
})}
/
>
/
>
<
/FormGroup
>
<
/FormGroup
>
<
/Col
>
<
/Col
>
...
@@ -210,79 +209,53 @@ return (
...
@@ -210,79 +209,53 @@ return (
<
/Col
>
<
/Col
>
<
Col
md
=
'4'
sm
=
'12'
>
<
Col
md
=
'4'
sm
=
'12'
>
<
FormGroup
>
<
FormGroup
>
<
Label
for
=
'
layout_id'
>
Layout
Playlist
<
/Label
>
<
Label
for
=
'
parenttype'
>
Parent
Type
<
/Label
>
<
Input
<
Input
type
=
'select'
type
=
'text'
name
=
'layout_id'
name
=
'parenttype'
id
=
'layout_id'
id
=
'parenttype'
innerRef
=
{
register
({
required
:
true
})}
innerRef
=
{
register
({
required
:
false
})}
placeholder
=
'layout_id'
placeholder
=
'parenttype'
defaultValue
=
{
dataElement
&&
dataElement
.
layout_id
}
defaultValue
=
{
dataElement
&&
dataElement
.
parenttype
}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'layout_id'
]
})}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'parenttype'
]
})}
>
/
>
{
!!
layoutplaylists
?
layoutplaylists
.
map
(
option
=>
{
return
<
option
key
=
{
option
.
id
}
selected
=
{
option
.
id
===
dataElement
.
layout_id
?
option
.
id
:
''
}
value
=
{
option
.
id
}
>
{
option
.
name
}
<
/option
>
})
:
<
option
>
Loading
<
/option>
}
<
/Input
>
<
/FormGroup
>
<
/Col
>
<
Col
md
=
'4'
sm
=
'12'
>
<
FormGroup
>
<
Label
for
=
'dynamic'
>
dynamic
<
/Label
>
<
Input
type
=
'select'
name
=
'dynamic'
id
=
'dynamic'
innerRef
=
{
register
({
required
:
true
})}
placeholder
=
'dynamic'
defaultValue
=
{
dataElement
&&
dataElement
.
dynamic
}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'dynamic'
]
})}
>
<
option
value
=
'0'
>
No
<
/option
>
<
option
value
=
'1'
>
Yes
<
/option
>
<
/Input>
<
/FormGroup
>
<
/FormGroup
>
<
/Col
>
<
/Col
>
<
Col
md
=
'4'
sm
=
'12'
>
<
Col
md
=
'4'
sm
=
'12'
>
<
FormGroup
>
<
FormGroup
>
<
Label
for
=
'
special'
>
special
<
/Label
>
<
Label
for
=
'
parentid'
>
Parent
Id
<
/Label
>
<
Input
<
Input
type
=
'select'
type
=
'text'
name
=
'special'
name
=
'parentid'
id
=
'special'
id
=
'parentid'
innerRef
=
{
register
({
required
:
true
})}
innerRef
=
{
register
({
required
:
false
})}
placeholder
=
'special'
placeholder
=
'parentid'
defaultValue
=
{
dataElement
&&
dataElement
.
special
}
defaultValue
=
{
dataElement
&&
dataElement
.
parentid
}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'special'
]
})}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'parentid'
]
})}
>
/>
<
option
value
=
'0'
>
No
<
/option
>
<
option
value
=
'1'
>
Yes
<
/option>
<
/Input
>
<
/FormGroup
>
<
/FormGroup
>
<
/Col
>
<
/Col
>
<
Col
md
=
'4'
sm
=
'12'
>
<
Col
md
=
'4'
sm
=
'12'
>
<
FormGroup
>
<
FormGroup
>
<
Label
for
=
'
special_id'
>
special_i
d
<
/Label
>
<
Label
for
=
'
external_id'
>
External
I
d
<
/Label
>
<
Input
<
Input
type
=
'text'
type
=
'text'
name
=
'
speci
al_id'
name
=
'
extern
al_id'
id
=
'
speci
al_id'
id
=
'
extern
al_id'
innerRef
=
{
register
({
required
:
fals
e
})}
innerRef
=
{
register
({
required
:
tru
e
})}
placeholder
=
'
speci
al_id'
placeholder
=
'
extern
al_id'
defaultValue
=
{
dataElement
&&
dataElement
.
speci
al_id
}
defaultValue
=
{
dataElement
&&
dataElement
.
extern
al_id
}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'
speci
al_id'
]
})}
className
=
{
classnames
({
'is-invalid'
:
errors
[
'
extern
al_id'
]
})}
/
>
/
>
<
/FormGroup
>
<
/FormGroup
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
<
Row
className
=
'app-user-edit'
>
{
/*
<Row className='app-user-edit'>
<Col sm='12'>
<Col sm='12'>
<ManageAssets dataElement={dataElement && dataElement.assets} />
<ManageAssets dataElement={dataElement && dataElement.assets} />
/</Col>
/</Col>
<
/Row
>
</Row>
*/
}
<
Row
className
=
'app-user-edit'
>
<
Row
className
=
'app-user-edit'
>
<
Col
className
=
'd-flex flex-sm-row flex-column mt-2'
sm
=
'12'
>
<
Col
className
=
'd-flex flex-sm-row flex-column mt-2'
sm
=
'12'
>
...
...
src/views/assets/projectassets/edit/index.js
View file @
befd5801
...
@@ -18,7 +18,7 @@ import moduleSettings from '../module'
...
@@ -18,7 +18,7 @@ import moduleSettings from '../module'
const
Tables
=
()
=>
{
const
Tables
=
()
=>
{
return
(
return
(
<
Fragment
>
<
Fragment
>
<
Breadcrumbs
breadCrumbTitle
=
'
Playlists'
breadCrumbParent
=
'Playlis
ts'
breadCrumbActive
=
{
moduleSettings
.
mainTitle
}
/
>
<
Breadcrumbs
breadCrumbTitle
=
'
Assets'
breadCrumbParent
=
'Asse
ts'
breadCrumbActive
=
{
moduleSettings
.
mainTitle
}
/
>
<
Row
>
<
Row
>
<
Col
sm
=
'12'
>
<
Col
sm
=
'12'
>
<
Link
to
=
{
moduleSettings
.
baseURL
}
>
Back
to
{
moduleSettings
.
mainTitleSingle
}
<
/Link
>
<
Link
to
=
{
moduleSettings
.
baseURL
}
>
Back
to
{
moduleSettings
.
mainTitleSingle
}
<
/Link
>
...
...
src/views/assets/projectassets/edit/main.js
View file @
befd5801
...
@@ -2,7 +2,7 @@ import { useState, useEffect, Fragment } from 'react'
...
@@ -2,7 +2,7 @@ import { useState, useEffect, Fragment } from 'react'
import
{
useParams
,
Link
}
from
'react-router-dom'
import
{
useParams
,
Link
}
from
'react-router-dom'
// ** Store & Actions
// ** Store & Actions
import
{
get
playlist
,
updateplaylis
t
}
from
'../../store/actions'
import
{
get
asset
,
updateasse
t
}
from
'../../store/actions'
import
{
useSelector
,
useDispatch
}
from
'react-redux'
import
{
useSelector
,
useDispatch
}
from
'react-redux'
...
@@ -15,7 +15,7 @@ import moduleSettings from '../module'
...
@@ -15,7 +15,7 @@ import moduleSettings from '../module'
const
ElementEdit
=
()
=>
{
const
ElementEdit
=
()
=>
{
// ** States & Vars
// ** States & Vars
const
store
=
useSelector
(
state
=>
state
.
playlis
ts
),
const
store
=
useSelector
(
state
=>
state
.
asse
ts
),
[
dataElement
,
setElementData
]
=
useState
(
null
),
[
dataElement
,
setElementData
]
=
useState
(
null
),
dispatch
=
useDispatch
(),
dispatch
=
useDispatch
(),
{
id
}
=
useParams
()
{
id
}
=
useParams
()
...
@@ -23,14 +23,13 @@ const ElementEdit = () => {
...
@@ -23,14 +23,13 @@ const ElementEdit = () => {
const
onSubmitHandler
=
values
=>
{
const
onSubmitHandler
=
values
=>
{
console
.
log
(
values
)
console
.
log
(
values
)
dispatch
(
dispatch
(
update
playlis
t
({
update
asse
t
({
...
dataElement
,
...
dataElement
,
idproject
:
values
.
idproject
,
idproject
:
values
.
idproject
,
title
:
values
.
title
,
title
:
values
.
title
,
layout_id
:
values
.
layout_id
,
parentid
:
values
.
parentid
,
dynamic
:
values
.
dynamic
,
parenttype
:
values
.
parenttype
,
special
:
values
.
special
,
external_id
:
values
.
external_id
special_id
:
values
.
special_id
})
})
)
)
...
@@ -38,21 +37,21 @@ const ElementEdit = () => {
...
@@ -38,21 +37,21 @@ const ElementEdit = () => {
// ** Function to get user on mount
// ** Function to get user on mount
useEffect
(()
=>
{
useEffect
(()
=>
{
dispatch
(
get
playlis
t
(
id
))
dispatch
(
get
asse
t
(
id
))
},
[
dispatch
])
},
[
dispatch
])
// ** Update user image on mount or change
// ** Update user image on mount or change
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
store
.
selected
Playlist
!==
null
||
(
store
.
selectedPlaylist
!==
null
&&
dataElement
!==
null
&&
store
.
selectedPlaylis
t
.
id
!==
dataElement
.
id
))
{
if
(
store
.
selected
Asset
!==
null
||
(
store
.
selectedAsset
!==
null
&&
dataElement
!==
null
&&
store
.
selectedAsse
t
.
id
!==
dataElement
.
id
))
{
return
setElementData
(
store
.
selected
Playlis
t
)
return
setElementData
(
store
.
selected
Asse
t
)
}
}
},
[
store
.
selected
Playlis
t
])
},
[
store
.
selected
Asse
t
])
return
store
.
selected
Playlist
!==
null
&&
store
.
selectedPlaylis
t
!==
undefined
?
(
return
store
.
selected
Asset
!==
null
&&
store
.
selectedAsse
t
!==
undefined
?
(
<
ElementCard
<
ElementCard
selectedElement
=
{
store
.
selected
Playlis
t
}
selectedElement
=
{
store
.
selected
Asse
t
}
onSubmitHandler
=
{
onSubmitHandler
}
onSubmitHandler
=
{
onSubmitHandler
}
/>
/>
)
:
(
)
:
(
...
...
src/views/assets/projectassets/index.js
View file @
befd5801
...
@@ -17,7 +17,7 @@ import moduleSettings from './module'
...
@@ -17,7 +17,7 @@ import moduleSettings from './module'
const
Tables
=
()
=>
{
const
Tables
=
()
=>
{
return
(
return
(
<
Fragment
>
<
Fragment
>
<
Breadcrumbs
breadCrumbTitle
=
'
Playlists'
breadCrumbParent
=
'Playlis
ts'
breadCrumbActive
=
{
moduleSettings
.
mainTitle
}
/
>
<
Breadcrumbs
breadCrumbTitle
=
'
Assets'
breadCrumbParent
=
'Asse
ts'
breadCrumbActive
=
{
moduleSettings
.
mainTitle
}
/
>
<
Row
>
<
Row
>
<
Col
sm
=
'12'
>
<
Col
sm
=
'12'
>
<
DataTable
/>
<
DataTable
/>
...
...
src/views/assets/projectassets/table.js
View file @
befd5801
...
@@ -3,7 +3,7 @@ import { Fragment, useState, useEffect, memo } from 'react'
...
@@ -3,7 +3,7 @@ import { Fragment, useState, useEffect, memo } from 'react'
// ** Table Columns
// ** Table Columns
import
{
serverSideColumns
}
from
'./data'
import
{
serverSideColumns
}
from
'./data'
// ** Store & Actions
// ** Store & Actions
import
{
getData_
playlists
}
from
'../store/actions'
import
{
getData_
assets
}
from
'../store/actions'
import
{
useSelector
,
useDispatch
}
from
'react-redux'
import
{
useSelector
,
useDispatch
}
from
'react-redux'
import
DataTableServerSide
from
'@components/datatable'
import
DataTableServerSide
from
'@components/datatable'
...
@@ -12,16 +12,16 @@ import moduleSettings from './module'
...
@@ -12,16 +12,16 @@ import moduleSettings from './module'
const
DataTable
=
()
=>
{
const
DataTable
=
()
=>
{
// ** Store Vars
// ** Store Vars
const
dispatch
=
useDispatch
()
const
dispatch
=
useDispatch
()
const
store
=
useSelector
(
state
=>
state
.
playlis
ts
)
const
store
=
useSelector
(
state
=>
state
.
asse
ts
)
return
(
return
(
<
DataTableServerSide
<
DataTableServerSide
cardTitle
=
{
moduleSettings
.
mainTitle
}
cardTitle
=
{
moduleSettings
.
mainTitle
}
allData
=
{
store
.
allData
Playlis
ts
}
allData
=
{
store
.
allData
Asse
ts
}
getData
=
{
getData_
playlis
ts
}
getData
=
{
getData_
asse
ts
}
serverSideColumns
=
{
serverSideColumns
}
serverSideColumns
=
{
serverSideColumns
}
linkAddButton
=
{
`
${
moduleSettings
.
baseURL
}
/add`
}
linkAddButton
=
{
`
${
moduleSettings
.
baseURL
}
/add`
}
total
=
{
store
.
total
Playlis
ts
}
total
=
{
store
.
total
Asse
ts
}
/
>
/
>
)
)
...
...
src/views/assets/store/reducer/index.js
View file @
befd5801
...
@@ -48,7 +48,7 @@ const assets = (state = initialState, action) => {
...
@@ -48,7 +48,7 @@ const assets = (state = initialState, action) => {
case
'GET_ASSET'
:
case
'GET_ASSET'
:
return
{
...
state
,
return
{
...
state
,
selected
Playlis
t
:
action
.
data
selected
Asse
t
:
action
.
data
}
}
case
'UPDATE_ASSET'
:
case
'UPDATE_ASSET'
:
...
...
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