Compare commits

...

4 Commits
1.4.11 ... main

Author SHA1 Message Date
ad42907ad9 Bump version: 1.4.12 → 1.4.13
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m21s
2025-08-11 09:15:26 +01:00
0c8379265e toast on duplicate account 2025-08-11 09:15:18 +01:00
3e86bb79f8 Bump version: 1.4.11 → 1.4.12
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m21s
2025-08-10 17:26:21 +01:00
09d5e49e24 expiary check 2025-08-10 17:26:17 +01:00
4 changed files with 26 additions and 3 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "1.4.11"
current_version = "1.4.13"
commit = true
tag = true
tag_name = "{new_version}"

View File

@ -1 +1 @@
1.4.11
1.4.13

View File

@ -30,6 +30,17 @@
{% block content %}
<h1>Add Account</h1>
<div aria-live="polite" aria-atomic="true" class="position-fixed top-0 start-50 translate-middle-x w-75 p-3" style="z-index: 1050; margin-top: 20px;">
<div id="liveToast" class="toast hide bg-danger text-white" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header bg-danger text-white">
<strong class="me-auto">Account Error</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
{{ error }}
</div>
</div>
</div>
<div>
<form action="/accounts/add" method="POST" onsubmit="showLoading()">
<div class="form-group">
@ -123,4 +134,16 @@
});
});
</script>
{% if error %}
<script>
document.addEventListener("DOMContentLoaded", function() {
var toastEl = document.getElementById('liveToast');
var toast = new bootstrap.Toast(toastEl, {
autohide: true,
delay: 5000
});
toast.show();
});
</script>
{% endif %}
{% endblock %}

View File

@ -123,7 +123,7 @@
success: function(response) {
spinner.hide();
buttonText.show();
if (response.message === 'Account is expired') {
if (response.message && response.message.toLowerCase().includes('expired')) {
button.prop('disabled', false);
button.removeClass('btn-info').addClass('btn-warning');
buttonText.text('Expired');