wrong password now has close button looking consistent AND actually closes alert

This commit is contained in:
2021-10-08 22:31:31 +11:00
parent a4574390ec
commit 911d43bddc
2 changed files with 6 additions and 7 deletions

5
TODO
View File

@@ -1,7 +1,8 @@
## GENERAL ## GENERAL
* move all unsorted photos/* -> import/ * move all unsorted photos/* -> import/
TEST: moving over the top of same dir name (what does this do to FS content) TEST: moving over the top of same dir name (what does this do to FS content)
FIX: BUG-69 -- I think the AddDir()'s should be finding existing ones, but maybe are adding?
FIX: BUG-69
TEST: what if we try to move a path in settings, should not allow this? TEST: what if we try to move a path in settings, should not allow this?
* when we do a legitimate move of a file, update last_scanned_dt otherwise FS change is newer, and it will 're-scan' * when we do a legitimate move of a file, update last_scanned_dt otherwise FS change is newer, and it will 're-scan'
@@ -11,8 +12,6 @@
* put a delete option on viewer page * put a delete option on viewer page
* close button on invalid password should look like danger/alert/close for jobs
* metadata at folder level with file level to add more richness * metadata at folder level with file level to add more richness
* why .xcf is seen as a video??? * why .xcf is seen as a video???

View File

@@ -27,7 +27,10 @@
<div class="container"> <div class="container">
{% if form.errors|length > 0 %} {% if form.errors|length > 0 %}
<div class="row my-5"> <div class="row my-5">
<alert class="alert alert-danger alert-dismissible fade show"> <alert id="err" class="alert alert-danger alert-dismissible fade show">
<button type="button" class="close btn border-secondary me-3" data-dismiss="alert" aria-label="Close" onClick="$('#err').hide()">
<span aria-hidden="true">&times;</span>
</button>
{% set last_err = namespace(txt="") %} {% set last_err = namespace(txt="") %}
{% for e in form.errors %} {% for e in form.errors %}
{% if last_err.txt != form.errors[e] %} {% if last_err.txt != form.errors[e] %}
@@ -37,9 +40,6 @@
{% set last_err.txt=form.errors[e] %} {% set last_err.txt=form.errors[e] %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</alert> </alert>
</div class="row"> </div class="row">
{% endif %} {% endif %}