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
11d826a4
Commit
11d826a4
authored
Jul 18, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean editor
parent
f6fb01d3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
data.js
src/views/assets/seasons/data.js
+2
-2
seasons.js
src/views/assets/store/actions/seasons.js
+8
-0
No files found.
src/views/assets/seasons/data.js
View file @
11d826a4
// ** React Imports
// ** React Imports
import
{
Link
}
from
'react-router-dom'
import
{
Link
}
from
'react-router-dom'
import
{
clean
asset
}
from
'../store/actions'
import
{
clean
season
}
from
'../store/actions'
import
{
store
}
from
'@store/storeConfig/store'
import
{
store
}
from
'@store/storeConfig/store'
// ** Custom Components
// ** Custom Components
...
@@ -228,7 +228,7 @@ export const serverSideColumns = [
...
@@ -228,7 +228,7 @@ export const serverSideColumns = [
<
Link
<
Link
to
=
{
`
${
moduleSettings
.
baseURL
}
/edit/
${
row
.
id
}
`
}
to
=
{
`
${
moduleSettings
.
baseURL
}
/edit/
${
row
.
id
}
`
}
className
=
'user-name text-truncate mb-0'
className
=
'user-name text-truncate mb-0'
onClick
=
{()
=>
store
.
dispatch
(
clean
asset
(
row
.
id
))}
onClick
=
{()
=>
store
.
dispatch
(
clean
season
(
row
.
id
))}
>
>
<
span
className
=
'font-weight-bold'
>
{
row
.
title
}
<
/span
>
<
span
className
=
'font-weight-bold'
>
{
row
.
title
}
<
/span
>
<
/Link
>
<
/Link
>
...
...
src/views/assets/store/actions/seasons.js
View file @
11d826a4
...
@@ -76,6 +76,14 @@ export const getData_seasons = params => {
...
@@ -76,6 +76,14 @@ export const getData_seasons = params => {
.
catch
(
err
=>
console
.
log
(
err
))
.
catch
(
err
=>
console
.
log
(
err
))
}
}
}
}
export
const
cleanseason
=
id
=>
{
return
async
dispatch
=>
{
dispatch
({
type
:
'GET_SEASON'
,
data
:
null
})
}
}
export
const
addseason
=
params
=>
{
export
const
addseason
=
params
=>
{
return
(
dispatch
,
getState
)
=>
{
return
(
dispatch
,
getState
)
=>
{
...
...
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