mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that Truncate and Reset statistics should work. Fixes #7096
This commit is contained in:
parent
191e2b6242
commit
0ceb2e2767
@ -23,3 +23,4 @@ Bug fixes
|
||||
| `Issue #7034 <https://redmine.postgresql.org/issues/7034>`_ - Fixed an issue where Columns with default value not showing when adding a new row.
|
||||
| `Issue #7077 <https://redmine.postgresql.org/issues/7077>`_ - Fixed an issue where the Owner is not displayed in the reverse engineering SQL for Procedures.
|
||||
| `Issue #7078 <https://redmine.postgresql.org/issues/7078>`_ - Fixed an issue where an operation error message pop up showing the database object's name incorrectly.
|
||||
| `Issue #7096 <https://redmine.postgresql.org/issues/7096>`_ - Ensure that Truncate and Reset statistics should work.
|
||||
|
@ -183,8 +183,7 @@ define('pgadmin.node.table', [
|
||||
Notify.confirm(
|
||||
gettext('Truncate Table'),
|
||||
gettext('Are you sure you want to truncate table %s?', d.label),
|
||||
function (e) {
|
||||
if (e) {
|
||||
function () {
|
||||
var data = d;
|
||||
$.ajax({
|
||||
url: obj.generate_url(i, 'truncate' , d, true),
|
||||
@ -214,7 +213,6 @@ define('pgadmin.node.table', [
|
||||
Notify.pgRespErrorNotify(xhr, error);
|
||||
t.unload(i);
|
||||
});
|
||||
}
|
||||
}, function() {}
|
||||
);
|
||||
},
|
||||
@ -231,8 +229,7 @@ define('pgadmin.node.table', [
|
||||
Notify.confirm(
|
||||
gettext('Reset statistics'),
|
||||
gettext('Are you sure you want to reset the statistics for table "%s"?', d._label),
|
||||
function (e) {
|
||||
if (e) {
|
||||
function () {
|
||||
var data = d;
|
||||
$.ajax({
|
||||
url: obj.generate_url(i, 'reset' , d, true),
|
||||
@ -257,7 +254,6 @@ define('pgadmin.node.table', [
|
||||
Notify.pgRespErrorNotify(xhr, error);
|
||||
t.unload(i);
|
||||
});
|
||||
}
|
||||
},
|
||||
function() {}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user