Pending configuration warning and reload

This commit is contained in:
Eduardo Silva
2024-02-16 17:14:35 -03:00
parent d5edc5bb2e
commit 0a14192444
8 changed files with 102 additions and 13 deletions

View File

@@ -168,6 +168,19 @@
<!-- Main content -->
<section class="content">
<div class="container-fluid">
{% if pending_changes_warning %}
<div class="alert alert-warning" role="alert">
<h4 class="alert-heading">Update Required</h4>
<p>Your WireGuard settings have been modified. To apply these changes, please update the configuration and reload the WireGuard service.
</p>
<p>
<a href="/tools/export_wireguard_config/?action=update_and_restart" class="btn btn-secondary">Update and restart service</a>
</p>
</div>
{% endif %}
{% block content %}{% endblock %}
@@ -179,7 +192,7 @@
<footer class="main-footer">
wireguard-webadmin
<div class="float-right d-none d-sm-inline-block">
<b>Version</b> 0.8 beta
<b>Version</b> 0.8.1 beta
</div>
</footer>