mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where pgAdmin stuck while creating a new index. Fixes #7460
This commit is contained in:
committed by
Akshay Joshi
parent
d90b2621da
commit
74f7fee8b5
@@ -32,4 +32,5 @@ Bug fixes
|
||||
| `Issue #7441 <https://redmine.postgresql.org/issues/7441>`_ - Ensure that the Query Editor should be focused when switching between query tool tabs.
|
||||
| `Issue #7443 <https://redmine.postgresql.org/issues/7443>`_ - Fixed and issue where 'Use spaces' not working in the query tool.
|
||||
| `Issue #7453 <https://redmine.postgresql.org/issues/7453>`_ - Fixed an issue where the Database restriction is not working.
|
||||
| `Issue #7460 <https://redmine.postgresql.org/issues/7460>`_ - Fixed an issue where pgAdmin stuck while creating a new index.
|
||||
| `Issue #7468 <https://redmine.postgresql.org/issues/7468>`_ - Skip the history records if the JSON info can't be parsed instead of showing 'No history'.
|
||||
|
||||
@@ -321,10 +321,11 @@ export default class IndexSchema extends BaseUISchema {
|
||||
};
|
||||
});
|
||||
};
|
||||
if(state.amname != actionObj.oldState.amname) {
|
||||
if((state.amname != actionObj.oldState.amname) && state.columns.length > 0) {
|
||||
return new Promise((resolve)=>{
|
||||
Notify.confirm(
|
||||
gettext('Changing access method will clear columns collection'),
|
||||
gettext('Warning'),
|
||||
gettext('Changing access method will clear columns collection. Do you want to continue?'),
|
||||
function () {
|
||||
setColumns(resolve);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user