Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 12326 Rev 12329
Línea 5... Línea 5...
5
import { useDispatch } from 'react-redux'
5
import { useDispatch } from 'react-redux'
6
import { useHistory } from 'react-router-dom'
6
import { useHistory } from 'react-router-dom'
7
import { LengthFilter, SearchInput, Table, TablePagination } from '../../../recruitment_and_selection/components/TableComponents'
7
import { LengthFilter, SearchInput, Table, TablePagination } from '../../../recruitment_and_selection/components/TableComponents'
8
import { addNotification } from '../../../redux/notification/notification.actions'
8
import { addNotification } from '../../../redux/notification/notification.actions'
9
import DeleteModal from '../../../shared/DeleteModal'
9
import DeleteModal from '../../../shared/DeleteModal'
-
 
10
import AddModal from '../components/AddModal'
Línea 10... Línea 11...
10
 
11
 
11
const headers = [
12
const headers = [
12
	{ key: 'last_date', label: 'Último día', isSorteable: true },
13
	{ key: 'last_date', label: 'Último día', isSorteable: true },
13
	{ key: 'form', label: 'Nombre del Formulario', isSorteable: true },
14
	{ key: 'form', label: 'Nombre del Formulario', isSorteable: true },
Línea 19... Línea 20...
19
const TableView = ({
20
const TableView = ({
20
	add_link,
21
	add_link,
21
	table_link,
22
	table_link,
22
	permisions,
23
	permisions,
23
	actionLink,
24
	actionLink,
24
	setActionLink
25
	setActionLink,
-
 
26
	email_link
25
}) => {
27
}) => {
Línea 26... Línea 28...
26
 
28
 
27
	//Hooks
29
	//Hooks
28
	const dispatch = useDispatch()
30
	const dispatch = useDispatch()
Línea 83... Línea 85...
83
									<div className="row justify-content-end" style={{ gap: '10px' }}>
85
									<div className="row justify-content-end" style={{ gap: '10px' }}>
84
										{
86
										{
85
											permisions.allowAdd
87
											permisions.allowAdd
86
											&&
88
											&&
87
											<label
89
											<label
88
												className='d-flex align-items-center'
90
												className='d-flex align-items-center btn-add'
89
												onClick={() => {
91
												onClick={() => {
90
													setActionLink(add_link)
92
													setActionLink(add_link)
91
													setModalToShow('add')
93
													setModalToShow('add')
92
												}}
94
												}}
93
												style={{ cursor: 'pointer' }}
95
												style={{ cursor: 'pointer' }}
Línea 246... Línea 248...
246
							</Card>
248
							</Card>
247
						</div>
249
						</div>
248
					</div >
250
					</div >
249
				</div >
251
				</div >
250
			</section >
252
			</section >
-
 
253
			<AddModal
-
 
254
				action_link={actionLink}
-
 
255
				closeModal={() => setModalToShow('')}
-
 
256
				isOpen={modalToShow === 'add'}
-
 
257
				email_link={email_link}
-
 
258
				onComplete={() => getData({
-
 
259
					url: table_link,
-
 
260
					params: {
-
 
261
						search: search,
-
 
262
						length: dataLength,
-
 
263
						page: pages.current
-
 
264
					}
-
 
265
				})}
-
 
266
			/>
251
			<DeleteModal
267
			<DeleteModal
252
				url={actionLink}
268
				url={actionLink}
253
				isOpen={modalToShow === 'delete'}
269
				isOpen={modalToShow === 'delete'}
254
				closeModal={() => setModalToShow('')}
270
				closeModal={() => setModalToShow('')}
255
				title="Esta seguro de borrar esta evaluación?"
271
				title="Esta seguro de borrar esta evaluación?"