mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
Added sorting for plugins (#6580)
This commit is contained in:
parent
3fdb3f7838
commit
221f6f2002
4 changed files with 75 additions and 16 deletions
|
@ -104,7 +104,7 @@ export const PadPage = ()=>{
|
|||
<SearchField value={searchTerm} onChange={v=>setSearchTerm(v.target.value)} placeholder={t('ep_admin_pads:ep_adminpads2_search-heading')}/>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<tr className="search-pads">
|
||||
<th className={determineSorting(searchParams.sortBy, searchParams.ascending, 'padName')} onClick={()=>{
|
||||
setSearchParams({
|
||||
...searchParams,
|
||||
|
@ -136,7 +136,7 @@ export const PadPage = ()=>{
|
|||
<th><Trans i18nKey="ep_admin_pads:ep_adminpads2_action"/></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tbody className="search-pads-body">
|
||||
{
|
||||
pads?.results?.map((pad)=>{
|
||||
return <tr key={pad.padName}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue