Commit ddadb6e5 authored by PDuarte's avatar PDuarte

locations ui fixs

parent a545eea6
...@@ -40,7 +40,7 @@ const Tables = () => { ...@@ -40,7 +40,7 @@ const Tables = () => {
return ( return (
<Fragment> <Fragment>
<Breadcrumbs breadCrumbTitle='Assets' breadCrumbParent='Assets' breadCrumbActive={moduleSettings.mainTitle} /> <Breadcrumbs breadCrumbTitle='Settings' breadCrumbParent='Settings' 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>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
// ** Store & Actions // ** Store & Actions
import { getProject, cleanProject } from '../store/actions' import { getProject, cleanLocation } from '../store/actions'
import { store } from '@store/storeConfig/store' import { store } from '@store/storeConfig/store'
// ** Custom Components // ** Custom Components
...@@ -260,7 +260,7 @@ export const serverSideColumns = [ ...@@ -260,7 +260,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(cleanProject(row.id))} onClick={() => store.dispatch(cleanLocation(row.id))}
> >
<span className='font-weight-bold'>{row.name}</span> <span className='font-weight-bold'>{row.name}</span>
</Link> </Link>
......
...@@ -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='Assets' breadCrumbParent='Assets' breadCrumbActive={moduleSettings.mainTitle} /> <Breadcrumbs breadCrumbTitle='Settings' breadCrumbParent='Settings' 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>
......
...@@ -245,3 +245,12 @@ export const updateLocation = location => { ...@@ -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