- added duplicate form from another call functionality;
- fixed styles; - added copy icon for user emails; - added hotkey to open loginadmin page quickly; - added modal for archiving document; - added modal for create appointment;
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { __ } from '@wordpress/i18n';
|
||||
import { uniq } from 'ramda';
|
||||
import copy from 'copy-to-clipboard';
|
||||
|
||||
// store
|
||||
import { useStore, storeSet } from '../../../../store';
|
||||
@@ -116,6 +117,15 @@ const AllUsersTable = () => {
|
||||
return `${rowData.firstName} ${rowData.lastName}`;
|
||||
};
|
||||
|
||||
const roleEmailTemplate = (rowData) => {
|
||||
return <div className="appPageSection__tableActions lessGap">
|
||||
<span className="truncatedText">{rowData.email}</span>
|
||||
<button className="iconBtn" onClick={() => copy(rowData.email)}>
|
||||
<i className="pi pi-copy"></i>
|
||||
</button>
|
||||
</div>;
|
||||
};
|
||||
|
||||
const roleBodyTemplate = (rowData) => {
|
||||
return rowData.role.roleName;
|
||||
};
|
||||
@@ -157,7 +167,7 @@ const AllUsersTable = () => {
|
||||
header={__('Nome utente', 'gepafin')}
|
||||
filter filterPlaceholder={__('Cerca per nome', 'gepafin')}
|
||||
style={{ minWidth: '12rem' }}/>
|
||||
<Column field="email" header={__('Email', 'gepafin')}
|
||||
<Column body={roleEmailTemplate} header={__('Email', 'gepafin')}
|
||||
filter filterPlaceholder={__('Cerca per email', 'gepafin')}
|
||||
style={{ minWidth: '12rem' }}/>
|
||||
<Column body={roleBodyTemplate} header={__('Ruolo', 'gepafin')}
|
||||
|
||||
Reference in New Issue
Block a user