Fixes disabled lock button.

This commit is contained in:
Bertrand Bordage 2017-12-15 11:27:02 +01:00
parent 07f157a4e8
commit ae3fc1f2a6
2 changed files with 5 additions and 1 deletions

View file

@ -108,6 +108,10 @@
border: 1px solid $color-grey-2;
background: #fff;
}
&.disabled {
pointer-events: none;
}
}
button.status-tag:hover,

View file

@ -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 %}