mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Do not show success message, when there is an error saving the data in
the DataGrid. Fixes #2907
This commit is contained in:
committed by
Ashesh Vashi
parent
281b6c91b5
commit
ea82d92e41
@@ -2422,6 +2422,7 @@ define('tools.querytool', [
|
||||
}
|
||||
|
||||
grid.setSelectedRows([]);
|
||||
|
||||
// Reset data store
|
||||
self.data_store = {
|
||||
'added': {},
|
||||
@@ -2429,13 +2430,15 @@ define('tools.querytool', [
|
||||
'deleted': {},
|
||||
'added_index': {},
|
||||
'updated_index': {}
|
||||
}
|
||||
};
|
||||
|
||||
// Reset old primary key data now
|
||||
self.primary_keys_data = {};
|
||||
|
||||
// Clear msgs after successful save
|
||||
$('.sql-editor-message').html('');
|
||||
|
||||
alertify.success(gettext("Data saved successfully."));
|
||||
} else {
|
||||
// Something went wrong while saving data on the db server
|
||||
$("#btn-flash").prop('disabled', false);
|
||||
@@ -2476,7 +2479,6 @@ define('tools.querytool', [
|
||||
self.trigger('pgadmin-sqleditor:loading-icon:hide');
|
||||
|
||||
grid.invalidate();
|
||||
alertify.success(gettext("Data saved successfully."));
|
||||
if (self.close_on_save) {
|
||||
self.close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user