mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Resolve "Move to last page" warning shown unnecessarily issue. Fixes #1422
This commit is contained in:
committed by
Dave Page
parent
1bd27b847b
commit
6c6660e576
@@ -1800,7 +1800,9 @@ define(
|
||||
}
|
||||
else {
|
||||
// If current page is not the last page then confirm from the user
|
||||
if (self.collection.state.currentPage != self.collection.state.lastPage) {
|
||||
if (self.collection.state.lastPage != null &&
|
||||
self.collection.state.currentPage != self.collection.state.lastPage
|
||||
) {
|
||||
alertify.confirm('{{ _('Add New Row') }}',
|
||||
'{{ _('The result set display will move to the last page. Do you wish to continue?') }}',
|
||||
function() {
|
||||
@@ -2301,7 +2303,9 @@ define(
|
||||
}
|
||||
else {
|
||||
// If current page is not the last page then confirm from the user
|
||||
if (self.collection.state.currentPage != self.collection.state.lastPage) {
|
||||
if (self.collection.state.lastPage != null &&
|
||||
self.collection.state.currentPage != self.collection.state.lastPage
|
||||
) {
|
||||
alertify.confirm('{{ _('Paste Row') }}',
|
||||
'{{ _('The result set display will move to the last page. Do you wish to continue?') }}',
|
||||
function() {
|
||||
|
||||
Reference in New Issue
Block a user