-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Settings for delete all redirects and numbers of redirects per page (#…
…140) * Settings for delete all redirects and numbers of redirects per page * Add css class to delete all redirects button and change its text * Improve CSS
- Loading branch information
1 parent
13a9928
commit 65dd471
Showing
11 changed files
with
127 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { __, _n, sprintf } from '@wordpress/i18n'; | ||
|
||
const Limit = ( { limit, setLimit, total, setOffset, setIsCheckAll, setCheckedList } ) => { | ||
const handleChange = e => { | ||
setLimit( parseInt( e.target.value ) ); | ||
|
||
setOffset( 0 ); | ||
setIsCheckAll( false ); | ||
setCheckedList( [] ); | ||
}; | ||
|
||
return ( | ||
<div className='ss-limit'> | ||
<select value={ limit } onChange={ handleChange }> | ||
<option value={ 20 }>20</option> | ||
<option value={ 50 }>50</option> | ||
<option value={ 100 }>100</option> | ||
<option value={ 200 }>200</option> | ||
<option value={ total }>{ __( 'All', 'slim-seo' ) }</option> | ||
</select> | ||
| ||
{ sprintf( _n( 'items per page. Total %d item.', 'items per page. Total %d items.', 'slim-seo' ), Number( total ) ) } | ||
</div> | ||
); | ||
}; | ||
|
||
export default Limit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters