Skip to content
Merged
Prev Previous commit
cs
  • Loading branch information
LadySolveig committed Aug 15, 2025
commit d6467b982ca1a31d35a815e03648f03b47cfe302
Original file line number Diff line number Diff line change
Expand Up @@ -137,27 +137,27 @@
endif; ?>
</td>
<td class="text-center">
<?php $hideButton = function($labels) {
foreach ($labels as $label) {
if (in_array(strtolower($label->name), ['npm resource changed', 'composer dependency changed', 'rtc'])) {
return true;
}
}
<?php $hideButton = function ($labels) {
foreach ($labels as $label) {
if (in_array(strtolower($label->name), ['npm resource changed', 'composer dependency changed', 'rtc'])) {
return true;
}
}

return false;
};?>
<?php if ($this->settings->get('advanced', 0) || !$hideButton($item->labels)) : ?>
<?php if ($item->applied) :
?>
<?php if ($item->applied) :
?>
<button type="button" class="btn btn-sm btn-success submitPatch"
data-task="revert" data-id="<?php echo (int) $item->applied; ?>"><?php echo Text::_('COM_PATCHTESTER_REVERT_PATCH'); ?></button>
<?php
else :
?>
<?php
else :
?>
<button type="button" class="btn btn-sm btn-primary submitPatch"
data-task="apply" data-id="<?php echo (int) $item->pull_id; ?>"><?php echo Text::_('COM_PATCHTESTER_APPLY_PATCH'); ?></button>
<?php
endif; ?>
<?php
endif; ?>
<?php endif; ?>
</td>
</tr>
Expand Down