Commit ab995274 by Yvon

remove makeups decrement button if makeups_to_do count is 0

parent 53aec0df
......@@ -121,10 +121,12 @@ function display_makeups_members() {
render: function (data, type, full) {
var html = `<b>${data}</b>`
if(full.shift_type == 'standard') {
html += `
<button class="decrement_makeup btn--primary" id="decrement_member_${full.id}">
<i class="fas fa-minus"></i>
</button>`;
if(data > 0) {
html += `
<button class="decrement_makeup btn--primary" id="decrement_member_${full.id}">
<i class="fas fa-minus"></i>
</button>`;
}
html += `
<button class="increment_makeup btn--primary" id="increment_member_${full.id}">
<i class="fas fa-plus"></i>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment