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:
Akshay Joshi 2022-04-12 16:27:24 +05:30
parent 7d979fb196
commit 3a4ff2677e
2 changed files with 19 additions and 4 deletions

View File

@ -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) \

View File

@ -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;
}