From 5e2fb6d56eb6dc353c99226cd9075ebc29064f5c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 16 Oct 2020 15:26:51 +0200 Subject: [PATCH] static: replace server-side alerts with webcomponent --- passbook/core/templates/base/page.html | 2 +- passbook/core/templates/login/base.html | 2 +- passbook/core/templates/login/base_full.html | 2 +- .../core/templates/partials/messages.html | 22 ------- passbook/static/static/passbook/passbook.js | 24 ++++---- .../static/static/passbook/passbook.js.map | 2 +- passbook/static/static/src/Messages.js | 57 +++++++++++++++++++ passbook/static/static/src/passbook.js | 1 + 8 files changed, 74 insertions(+), 38 deletions(-) delete mode 100644 passbook/core/templates/partials/messages.html create mode 100644 passbook/static/static/src/Messages.js diff --git a/passbook/core/templates/base/page.html b/passbook/core/templates/base/page.html index a64b70b7f..6bb61d962 100644 --- a/passbook/core/templates/base/page.html +++ b/passbook/core/templates/base/page.html @@ -7,7 +7,7 @@ {% load passbook_utils %} {% block body %} -{% include 'partials/messages.html' %} +
{% trans 'Skip to content' %}
-{% include 'partials/messages.html' %} +