diff --git a/app/templates/views/dashboard_origins.html b/app/templates/views/dashboard_origins.html index bdc993b..be53086 100644 --- a/app/templates/views/dashboard_origins.html +++ b/app/templates/views/dashboard_origins.html @@ -13,7 +13,7 @@ delete origin - + delete all @@ -37,5 +37,12 @@ } load() + + function deleteOriginsWrapper() { + const response = confirm('Are you sure you want to delete all origins and their leases?'); + + if (response) + deleteOrigins().finally(() => load()) + } {% endblock %}