From 15f8d6f3aaa86b11d16d451412a9b3dc74d02c76 Mon Sep 17 00:00:00 2001 From: Pierre GIRAUD Date: Fri, 10 Nov 2023 08:53:45 +0100 Subject: [PATCH] Load handler data using XHR This is required since we don't reload the page but use a single page. For example, the currently selected database may have changed and the action buttons may have changed too. --- powa/dashboards.py | 1 + powa/static/js/App.vue | 41 ++++++++++++++++++-------------------- powa/static/js/store.js | 2 ++ powa/templates/layout.html | 3 --- 4 files changed, 22 insertions(+), 25 deletions(-) diff --git a/powa/dashboards.py b/powa/dashboards.py index ffc8b197..3f63945d 100644 --- a/powa/dashboards.py +++ b/powa/dashboards.py @@ -87,6 +87,7 @@ def get(self, *args): timeline=param_timeline, title=title, breadcrumbs=breadcrumbs, + handler=self.to_json(), ) ) diff --git a/powa/static/js/App.vue b/powa/static/js/App.vue index 049d430b..effcd4c4 100644 --- a/powa/static/js/App.vue +++ b/powa/static/js/App.vue @@ -2,25 +2,25 @@ -  PoWA +  PoWA -