Commit ddadb6e5 authored by PDuarte's avatar PDuarte

locations ui fixs

parent a545eea6
......@@ -40,7 +40,7 @@ const Tables = () => {
return (
<Fragment>
<Breadcrumbs breadCrumbTitle='Assets' breadCrumbParent='Assets' breadCrumbActive={moduleSettings.mainTitle} />
<Breadcrumbs breadCrumbTitle='Settings' breadCrumbParent='Settings' breadCrumbActive={moduleSettings.mainTitle} />
<Row>
<Col sm='12'>
<Link to={moduleSettings.baseURL}>Back to {moduleSettings.mainTitle}</Link>
......
......@@ -2,7 +2,7 @@
import { Link } from 'react-router-dom'
// ** Store & Actions
import { getProject, cleanProject } from '../store/actions'
import { getProject, cleanLocation } from '../store/actions'
import { store } from '@store/storeConfig/store'
// ** Custom Components
......@@ -260,7 +260,7 @@ export const serverSideColumns = [
<Link
to={`${moduleSettings.baseURL}/edit/${row.id}`}
className='user-name text-truncate mb-0'
onClick={() => store.dispatch(cleanProject(row.id))}
onClick={() => store.dispatch(cleanLocation(row.id))}
>
<span className='font-weight-bold'>{row.name}</span>
</Link>
......
......@@ -18,7 +18,7 @@ import moduleSettings from '../module'
const Tables = () => {
return (
<Fragment>
<Breadcrumbs breadCrumbTitle='Assets' breadCrumbParent='Assets' breadCrumbActive={moduleSettings.mainTitle} />
<Breadcrumbs breadCrumbTitle='Settings' breadCrumbParent='Settings' breadCrumbActive={moduleSettings.mainTitle} />
<Row>
<Col sm='12'>
<Link to={moduleSettings.baseURL}>Back to {moduleSettings.mainTitleSingle}</Link>
......
......@@ -245,3 +245,12 @@ export const updateLocation = location => {
})
}
}
export const cleanLocation = id => {
return async dispatch => {
dispatch({
type: 'GET_LOCATION',
data: null
})
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment