Fixed an issue where Clear Saved Password should be disabled if the password is already cleared. #5773

This commit is contained in:
Anil Sahoo 2023-02-14 15:47:40 +05:30 committed by GitHub
parent e70f115b48
commit 5303a36ff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -427,6 +427,10 @@ define('pgadmin.node.server', [
if (res.success == 1) { if (res.success == 1) {
Notify.success(res.info); Notify.success(res.info);
t.itemData(i).is_password_saved=res.data.is_password_saved; t.itemData(i).is_password_saved=res.data.is_password_saved;
t.deselect(i);
setTimeout(function() {
t.select(i);
});
} }
else { else {
Notify.error(res.info); Notify.error(res.info);