mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-21 16:27:39 -06:00
Fixed an issue where theme preview under theme options was broken in pgAdmin server mode. #7626
This commit is contained in:
parent
b303693ae8
commit
a06c13623d
@ -70,10 +70,8 @@ class MiscModule(PgAdminModule):
|
||||
.replace('-', ' ')
|
||||
.title(),
|
||||
'value': theme,
|
||||
'preview_src': url_for(
|
||||
'static', filename='js/generated/img/' +
|
||||
theme_data['preview_img']
|
||||
) if 'preview_img' in theme_data else None
|
||||
'preview_src': 'js/generated/img/' + theme_data['preview_img']
|
||||
if 'preview_img' in theme_data else None
|
||||
})
|
||||
|
||||
self.preference.register(
|
||||
|
@ -295,6 +295,7 @@ export default function PreferencesComponent({ ...props }) {
|
||||
} else {
|
||||
opt.selected = false;
|
||||
}
|
||||
opt.preview_src = opt.preview_src && url_for('static', { filename: opt.preview_src });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user