mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Fix sort/filter dialog editing issue. Fixes #3558.
2) Fix sort/filter dialog issue where it incorrectly requires ASC/DESC. Fixes #3325.
This commit is contained in:
parent
46d4bf027d
commit
57660d131f
@ -15,7 +15,9 @@ Features
|
|||||||
Bug fixes
|
Bug fixes
|
||||||
*********
|
*********
|
||||||
|
|
||||||
|
| `Bug #3325 <https://redmine.postgresql.org/issues/3325>`_ - Fix sort/filter dialog issue where it incorrectly requires ASC/DESC.
|
||||||
| `Bug #3407 <https://redmine.postgresql.org/issues/3407>`_ - Fix keyboard shortcuts layout in the preferences panel.
|
| `Bug #3407 <https://redmine.postgresql.org/issues/3407>`_ - Fix keyboard shortcuts layout in the preferences panel.
|
||||||
| `Bug #3461 <https://redmine.postgresql.org/issues/3461>`_ - Ensure that refreshing a node also updates the Property list.
|
| `Bug #3461 <https://redmine.postgresql.org/issues/3461>`_ - Ensure that refreshing a node also updates the Property list.
|
||||||
| `Bug #3528 <https://redmine.postgresql.org/issues/3528>`_ - Handle connection errors properly in the query tool.
|
| `Bug #3528 <https://redmine.postgresql.org/issues/3528>`_ - Handle connection errors properly in the query tool.
|
||||||
|
| `Bug #3558 <https://redmine.postgresql.org/issues/3558>`_ - Fix sort/filter dialog editing issue.
|
||||||
| `Bug #3578 <https://redmine.postgresql.org/issues/3578>`_ - Ensure sql for Role should be visible in SQL panel for GPDB.
|
| `Bug #3578 <https://redmine.postgresql.org/issues/3578>`_ - Ensure sql for Role should be visible in SQL panel for GPDB.
|
||||||
|
@ -42,10 +42,6 @@
|
|||||||
color: #964;
|
color: #964;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pgadmin-controls.sql_field_layout .CodeMirror {
|
|
||||||
line-height: 22px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Codemirror buttons */
|
/* Codemirror buttons */
|
||||||
.CodeMirror-dialog button {
|
.CodeMirror-dialog button {
|
||||||
font-family: 'Open Sans';
|
font-family: 'Open Sans';
|
||||||
|
@ -2099,7 +2099,9 @@ define([
|
|||||||
self.sqlCtrl.setOption('lineWrapping', sqlEditPreferences.wrap_code);
|
self.sqlCtrl.setOption('lineWrapping', sqlEditPreferences.wrap_code);
|
||||||
self.sqlCtrl.setOption('autoCloseBrackets', sqlEditPreferences.insert_pair_brackets);
|
self.sqlCtrl.setOption('autoCloseBrackets', sqlEditPreferences.insert_pair_brackets);
|
||||||
self.sqlCtrl.setOption('matchBrackets', sqlEditPreferences.brace_matching);
|
self.sqlCtrl.setOption('matchBrackets', sqlEditPreferences.brace_matching);
|
||||||
self.sqlCtrl.refresh();
|
setTimeout(function() {
|
||||||
|
self.sqlCtrl.refresh();
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -51,13 +51,13 @@ let FilterDialog = {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
text: gettext('Ok'),
|
text: gettext('OK'),
|
||||||
className: 'btn btn-primary fa fa-lg fa-save pg-alertify-button',
|
className: 'btn btn-primary pg-alertify-button',
|
||||||
'data-btn-name': 'ok',
|
'data-btn-name': 'ok',
|
||||||
}, {
|
}, {
|
||||||
text: gettext('Cancel'),
|
text: gettext('Cancel'),
|
||||||
key: 27,
|
key: 27,
|
||||||
className: 'btn btn-danger fa fa-lg fa-times pg-alertify-button',
|
className: 'btn btn-danger pg-alertify-button',
|
||||||
'data-btn-name': 'cancel',
|
'data-btn-name': 'cancel',
|
||||||
}],
|
}],
|
||||||
// Set options for dialog
|
// Set options for dialog
|
||||||
|
@ -304,8 +304,12 @@ define('pgadmin.datagrid', [
|
|||||||
matchBrackets: self.preferences.brace_matching,
|
matchBrackets: self.preferences.brace_matching,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let sql_font_size = sqlEditorUtils.calcFontSize(self.preferences.sql_font_size);
|
||||||
|
$(this.filter_obj.getWrapperElement()).css('font-size', sql_font_size);
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
// Set focus on editor
|
// Set focus on editor
|
||||||
|
that.filter_obj.refresh();
|
||||||
that.filter_obj.focus();
|
that.filter_obj.focus();
|
||||||
}, 500);
|
}, 500);
|
||||||
},
|
},
|
||||||
|
@ -425,12 +425,10 @@ class GridCommand(BaseCommand, SQLFilter, FetchedRowTracker):
|
|||||||
"""
|
"""
|
||||||
This function gets the order required for primary keys
|
This function gets the order required for primary keys
|
||||||
"""
|
"""
|
||||||
if self.cmd_type in (VIEW_FIRST_100_ROWS, VIEW_ALL_ROWS):
|
if self.cmd_type == VIEW_LAST_100_ROWS:
|
||||||
return 'asc'
|
|
||||||
elif self.cmd_type == VIEW_LAST_100_ROWS:
|
|
||||||
return 'desc'
|
return 'desc'
|
||||||
else:
|
else:
|
||||||
return None
|
return 'asc'
|
||||||
|
|
||||||
|
|
||||||
class TableCommand(GridCommand):
|
class TableCommand(GridCommand):
|
||||||
|
Loading…
Reference in New Issue
Block a user