forked from CGM_Public/pretix_original
Event-dashboard: Lazy-load warnings (#6421)
* Event-dashboard: Lazy-load warnings I don't like this, it's not pretty, but we have no quick way of fixing the overpaid orders check otherwise and a slow query on the event dashboard feels really bad, because even if you don't wanna see the dashboard ou are always going through it in navigation and that can get very annoying very quickly. * Update src/pretix/control/templates/pretixcontrol/event/dashboard_partial_warnings.html Co-authored-by: pajowu <engelhardt@pretix.eu> --------- Co-authored-by: pajowu <engelhardt@pretix.eu>
This commit is contained in:
@@ -15,8 +15,12 @@ $(function () {
|
||||
if ($("#logs_target").length == 0) {
|
||||
return;
|
||||
}
|
||||
$.get("logs/embed", function (data) {
|
||||
$("#logs_target").html(data)
|
||||
add_log_expand_handlers($("#logs_target"))
|
||||
$.get("dashboard/partials/logs", function (data) {
|
||||
$("#logs_target").html(data)
|
||||
add_log_expand_handlers($("#logs_target"))
|
||||
});
|
||||
$.get("dashboard/partials/warnings", function (data) {
|
||||
$("#warnings_loading").remove()
|
||||
$("#warnings_target").html(data)
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user