Properly swap modal context table and keep scroll position

This commit is contained in:
2022-08-09 07:20:30 +01:00
parent 3e92d17097
commit 83cd5e7ee7
6 changed files with 71 additions and 52 deletions

View File

@@ -240,6 +240,9 @@ class DrilldownContextModal(APIView):
template_name = "modals/context.html"
def post(self, request):
if request.resolver_match.url_name == "modal_context_table":
print("POST CONTEXT TABLE")
self.template_name = "modals/context_table.html"
# if not request.user.has_plan(self.plan_name):
# return JsonResponse({"success": False})
num = None