mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Prevent auto-commit/rollback being changed mid-transaction, and make the Preferences the defaults, not the current values.
This commit is contained in:
@@ -105,20 +105,6 @@ function updateUIPreferences(sqlEditor) {
|
||||
.attr('title',
|
||||
shortcut_title('Rollback',preferences.rollback_transaction));
|
||||
|
||||
/* Set Auto-commit and auto-rollback on query editor */
|
||||
if (preferences.auto_commit) {
|
||||
$el.find('.auto-commit').removeClass('visibility-hidden');
|
||||
}
|
||||
else {
|
||||
$el.find('.auto-commit').addClass('visibility-hidden');
|
||||
}
|
||||
if (preferences.auto_rollback) {
|
||||
$el.find('.auto-rollback').removeClass('visibility-hidden');
|
||||
}
|
||||
else {
|
||||
$el.find('.auto-rollback').addClass('visibility-hidden');
|
||||
}
|
||||
|
||||
/* Set explain options on query editor */
|
||||
if (preferences.explain_verbose){
|
||||
$el.find('.explain-verbose').removeClass('visibility-hidden');
|
||||
|
||||
Reference in New Issue
Block a user