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() { ...@@ -121,10 +121,12 @@ function display_makeups_members() {
render: function (data, type, full) { render: function (data, type, full) {
var html = `<b>${data}</b>` var html = `<b>${data}</b>`
if(full.shift_type == 'standard') { if(full.shift_type == 'standard') {
html += ` if(data > 0) {
<button class="decrement_makeup btn--primary" id="decrement_member_${full.id}"> html += `
<i class="fas fa-minus"></i> <button class="decrement_makeup btn--primary" id="decrement_member_${full.id}">
</button>`; <i class="fas fa-minus"></i>
</button>`;
}
html += ` html += `
<button class="increment_makeup btn--primary" id="increment_member_${full.id}"> <button class="increment_makeup btn--primary" id="increment_member_${full.id}">
<i class="fas fa-plus"></i> <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