mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 16:53:10 +00:00
Fixes disabled lock button.
This commit is contained in:
parent
07f157a4e8
commit
ae3fc1f2a6
2 changed files with 5 additions and 1 deletions
|
|
@ -108,6 +108,10 @@
|
|||
border: 1px solid $color-grey-2;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
button.status-tag:hover,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{% url 'wagtailadmin_pages:edit' page.id %}" />
|
||||
<button type="submit" class="status-tag {{ page.locked|yesno:'primary,secondary' }}{% if page_perms.can_lock %} disabled{% endif %}">
|
||||
<button type="submit" class="status-tag {{ page.locked|yesno:'primary,secondary' }}{% if not page_perms.can_lock %} disabled{% endif %}">
|
||||
{% if page.locked %}
|
||||
{% trans 'Locked' %}
|
||||
{% else %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue