mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
1) Fixed an issue where the Schema Diff Check icon beside filter options should not be visible if it is unselected. Fixes #7310
2) Fixed an issue where Reset Layout did not function and the Quick Search option under the Help menu displayed bullets. Fixes #7311
This commit is contained in:
parent
7d979fb196
commit
3a4ff2677e
@ -141,13 +141,12 @@ def reset_layout():
|
||||
"""Reset configuration setting"""
|
||||
|
||||
try:
|
||||
if request.params['setting'] in [
|
||||
if hasattr(request, 'params') and \
|
||||
request.params['setting'] in [
|
||||
'Browser/Layout', 'SQLEditor/Layout', 'Debugger/Layout']:
|
||||
db.session.query(Setting) \
|
||||
.filter(Setting.user_id == current_user.id) \
|
||||
.filter((Setting.setting == 'Browser/Layout') |
|
||||
(Setting.setting == 'SQLEditor/Layout') |
|
||||
(Setting.setting == 'Debugger/Layout')) \
|
||||
.filter((Setting.setting == request.params['setting'])) \
|
||||
.delete()
|
||||
else:
|
||||
db.session.query(Setting) \
|
||||
|
@ -1164,3 +1164,19 @@ select:-webkit-autofill:focus {
|
||||
.sql_textarea {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.visibility-hidden {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-left: 0;
|
||||
padding: 0;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 0 0 0 0px;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user