eliminar boton exportar csv
This commit is contained in:
parent
a44fe8caa2
commit
d674fc7a5a
|
@ -601,7 +601,7 @@ const AdministradoresComunidad = () => {
|
|||
<div className="col-12">
|
||||
<Toast ref={toast} />
|
||||
<div className="card">
|
||||
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar>
|
||||
<Toolbar className="mb-4" left={leftToolbarTemplate}></Toolbar>
|
||||
<DataTable ref={dt} value={listaAdmins} dataKey="_id" paginator rows={10} selection={selectedAdminsCommunities} onSelectionChange={(e) => setSelectedAdminsCommunities(e.value)}
|
||||
scrollable scrollHeight="800px" scrollDirection="both" header={header}
|
||||
rowsPerPageOptions={[10, 20, 30]} className="datatable-responsive mt-3"
|
||||
|
|
|
@ -626,7 +626,6 @@ const AdministradoresSistema = () => {
|
|||
<Toolbar
|
||||
className="mb-4"
|
||||
left={leftToolbarTemplate}
|
||||
right={rightToolbarTemplate}
|
||||
></Toolbar>
|
||||
<DataTable
|
||||
ref={dt}
|
||||
|
|
|
@ -623,7 +623,7 @@ const AreasComunes = () => {
|
|||
<div className="col-12">
|
||||
<Toast ref={toast} />
|
||||
<div className="card">
|
||||
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar>
|
||||
<Toolbar className="mb-4" left={leftToolbarTemplate} ></Toolbar>
|
||||
<DataTable ref={dt} value={commonAreaList} dataKey="_id" paginator rows={10} selection={selectedCommonAreas} onSelectionChange={(e) => setSelectedCommonAreas(e.value)}
|
||||
scrollable scrollHeight="700px" scrollDirection="both" header={header}
|
||||
rowsPerPageOptions={[10, 20, 30]} className="datatable-responsive mt-3"
|
||||
|
|
|
@ -275,36 +275,37 @@ const Communities = () => {
|
|||
console.log('Ocurrió un error con el servicio: ' + response.status);
|
||||
else return response.json();
|
||||
})
|
||||
.then(() => {
|
||||
_community.province = provincesList.find(
|
||||
(p) => p.code === _community.province,
|
||||
).name;
|
||||
_community.canton = cantonsList.find(
|
||||
(p) => p.code === _community.canton,
|
||||
).name;
|
||||
_community.district = districtsList.find(
|
||||
(p) => p.code === _community.district,
|
||||
).name;
|
||||
.then(() => {
|
||||
_community.province = provincesList.find(
|
||||
(p) => p.code === _community.province,
|
||||
).name;
|
||||
_community.canton = cantonsList.find(
|
||||
(p) => p.code === _community.canton,
|
||||
).name;
|
||||
_community.district = districtsList.find(
|
||||
(p) => p.code === _community.district,
|
||||
).name;
|
||||
|
||||
_communities.push(_community);
|
||||
toast.current.show({
|
||||
severity: 'success',
|
||||
summary: 'Registro exitoso',
|
||||
detail: 'Comunidad de vivienda Creada',
|
||||
life: 3000,
|
||||
});
|
||||
_communities.push(_community);
|
||||
toast.current.show({
|
||||
severity: 'success',
|
||||
summary: 'Registro exitoso',
|
||||
detail: 'Comunidad de vivienda Creada',
|
||||
life: 3000,
|
||||
});
|
||||
|
||||
setCommunitiesList(_communities);
|
||||
setCommunitiesList(_communities);
|
||||
|
||||
setProvinciaId('');
|
||||
setCantonId('');
|
||||
setDistrictId('');
|
||||
setCodeHouses('');
|
||||
setFormCommunityDialog(false);
|
||||
setProvinciaId('');
|
||||
setCantonId('');
|
||||
setDistrictId('');
|
||||
setCodeHouses('');
|
||||
setFormCommunityDialog(false);
|
||||
|
||||
setCommunity(emptyCommunity);
|
||||
})
|
||||
.catch((err) => console.log('Ocurrió un error con el fetch', err));
|
||||
setCommunity(emptyCommunity);
|
||||
})
|
||||
.catch((err) => console.log('Ocurrió un error con el fetch', err));
|
||||
}
|
||||
} else {
|
||||
setSubmitted(true);
|
||||
}
|
||||
|
@ -814,7 +815,6 @@ const Communities = () => {
|
|||
<Toolbar
|
||||
className="mb-4"
|
||||
left={leftToolbarTemplate}
|
||||
right={rightToolbarTemplate}
|
||||
></Toolbar>
|
||||
<DataTable
|
||||
ref={dt}
|
||||
|
@ -1271,7 +1271,7 @@ const Communities = () => {
|
|||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</Dialog>
|
||||
</div>
|
||||
|
|
|
@ -494,7 +494,7 @@ const GuardasSeguridad = () => {
|
|||
<div className="col-12">
|
||||
<Toast ref={toast} />
|
||||
<div className="card">
|
||||
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar>
|
||||
<Toolbar className="mb-4" left={leftToolbarTemplate}></Toolbar>
|
||||
<DataTable ref={dt} value={listaGuardas} dataKey="_id" paginator rows={5} selection={selectedGuardas} onSelectionChange={(e) => setSelectedGuardas(e.value)}
|
||||
responsiveLayout="scroll" header={header}
|
||||
rowsPerPageOptions={[5, 10, 25]} className="datatable-responsive mt-3"
|
||||
|
|
|
@ -649,7 +649,6 @@ const Inquilinos = () => {
|
|||
<Toolbar
|
||||
className='mb-4'
|
||||
left={leftToolbarTemplate}
|
||||
right={rightToolbarTemplate}
|
||||
></Toolbar>
|
||||
<DataTable
|
||||
ref={dt}
|
||||
|
|
|
@ -149,7 +149,6 @@ const InvitadosComunidad = () => {
|
|||
<Toolbar
|
||||
className="mb-4"
|
||||
left={leftToolbarTemplate}
|
||||
right={rightToolbarTemplate}
|
||||
/>
|
||||
<DataTable
|
||||
ref={tableRef}
|
||||
|
|
|
@ -260,7 +260,7 @@ const RegistroComunicado = () => {
|
|||
{comunicado && <span>¿Está seguro que desea eliminar el aviso "<b>{comunicado.post}</b>"?</span>}
|
||||
</div>
|
||||
</Dialog>
|
||||
<Toolbar className="mb-4" left={leftToolbarTemplate} right={rightToolbarTemplate}></Toolbar>
|
||||
<Toolbar className="mb-4" left={leftToolbarTemplate} ></Toolbar>
|
||||
<DataTable ref={dt} value={comunicados} dataKey="_id" paginator rows={5}
|
||||
scrollable scrollHeight="400px" scrollDirection="both" header={header}
|
||||
rowsPerPageOptions={[5, 10, 25]} className="datatable-responsive mt-3"
|
||||
|
|
|
@ -578,7 +578,6 @@ const Reservations = () => {
|
|||
<Toolbar
|
||||
className="mb-4"
|
||||
left={leftToolbarTemplate}
|
||||
right={rightToolbarTemplate}
|
||||
></Toolbar>
|
||||
<DataTable
|
||||
ref={dt}
|
||||
|
|
Loading…
Reference in New Issue