Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 11059 | Rev 11069 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11059 Rev 11061
Línea 7... Línea 7...
7
import { addNotification } from '../../../redux/notification/notification.actions'
7
import { addNotification } from '../../../redux/notification/notification.actions'
8
import { useDispatch } from 'react-redux'
8
import { useDispatch } from 'react-redux'
9
import DeleteModal from '../../../shared/DeleteModal'
9
import DeleteModal from '../../../shared/DeleteModal'
10
import ContentTitle from '../../../shared/ContentTitle'
10
import ContentTitle from '../../../shared/ContentTitle'
11
import AddModal from '../components/AddModal'
11
import AddModal from '../components/AddModal'
-
 
12
import EditModal from '../components/EditModal'
Línea 12... Línea 13...
12
 
13
 
13
const headers = [
14
const headers = [
14
	{ key: 'first_name', label: 'Nombre', isSorteable: true },
15
	{ key: 'first_name', label: 'Nombre', isSorteable: true },
15
	{ key: 'last_name', label: 'Apellido', isSorteable: true },
16
	{ key: 'last_name', label: 'Apellido', isSorteable: true },
Línea 21... Línea 22...
21
const MainView = ({ email_link, add_link, table_link, permisions, vacancies }) => {
22
const MainView = ({ email_link, add_link, table_link, permisions, vacancies }) => {
Línea 22... Línea 23...
22
 
23
 
23
	const dispatch = useDispatch()
24
	const dispatch = useDispatch()
24
	const [showDeleteModal, setShowDeleteModal] = useState(false)
25
	const [showDeleteModal, setShowDeleteModal] = useState(false)
-
 
26
	const [isShowAddModal, setIsShowAddModal] = useState(false)
-
 
27
	const [currentEditLink, setCurrentEditLink] = useState('')
25
	const [isShowAddModal, setIsShowAddModal] = useState(false)
28
	const [isShowEditModal, setIsShowEditModal] = useState(false)
26
	const [currentVacancy, setCurrentVacancy] = useState(vacancies[0].uuid || '')
29
	const [currentVacancy, setCurrentVacancy] = useState(vacancies[0].uuid || '')
27
	const [actionLink, setActionLink] = useState('')
30
	const [actionLink, setActionLink] = useState('')
28
	const [data, setData] = useState({})
31
	const [data, setData] = useState({})
29
	const [search, setSearch] = useState('')
32
	const [search, setSearch] = useState('')
Línea 144... Línea 147...
144
															&&
147
															&&
145
															<i
148
															<i
146
																className='fa fa-pencil'
149
																className='fa fa-pencil'
147
																style={{ cursor: 'pointer' }}
150
																style={{ cursor: 'pointer' }}
148
																onClick={() => {
151
																onClick={() => {
149
																	setActionLink(item.actions.link_edit)
152
																	setCurrentEditLink(item.actions.link_edit)
-
 
153
																	setIsShowEditModal(true)
150
																}}
154
																}}
151
															/>
155
															/>
152
														}
156
														}
153
														{
157
														{
154
															permisions.allowDelete
158
															permisions.allowDelete
Línea 188... Línea 192...
188
				email_link={email_link}
192
				email_link={email_link}
189
				add_link={add_link.replace('UUID_PLACEHOLDER', currentVacancy)}
193
				add_link={add_link.replace('UUID_PLACEHOLDER', currentVacancy)}
190
				closeModal={() => setIsShowAddModal(false)}
194
				closeModal={() => setIsShowAddModal(false)}
191
				isOpen={isShowAddModal}
195
				isOpen={isShowAddModal}
192
			/>
196
			/>
-
 
197
			<EditModal
-
 
198
				edit_link={currentEditLink}
-
 
199
				closeModal={() => setIsShowEditModal(false)}
-
 
200
				isOpen={isShowEditModal}
-
 
201
			/>
193
			<DeleteModal
202
			<DeleteModal
194
				url={actionLink}
203
				url={actionLink}
195
				isOpen={showDeleteModal}
204
				isOpen={showDeleteModal}
196
				closeModal={() => setShowDeleteModal(false)}
205
				closeModal={() => setShowDeleteModal(false)}
197
				title="Esta seguro de borrar esta vacante?"
206
				title="Esta seguro de borrar esta vacante?"