fix save user medals btn

This commit is contained in:
xiaomlove
2023-01-29 21:53:56 +08:00
parent 0845bca268
commit 04b94ec4cc

View File

@@ -5896,7 +5896,9 @@ function build_medal_image(\Illuminate\Support\Collection $medals, $maxHeight =
$html .= '</div>';
$medalImages[] = $html;
}
$medalImages[] = sprintf('<div style="display: flex;flex-direction: column;justify-content: space-between;margin-right: 10px"><span></span><input type="button" id="save-user-medal-btn" value="%s"/></div>', nexus_trans('label.save'));
if ($withActions) {
$medalImages[] = sprintf('<div style="display: flex;flex-direction: column;justify-content: space-between;margin-right: 10px"><span></span><input type="button" id="save-user-medal-btn" value="%s"/></div>', nexus_trans('label.save'));
}
return $wrapBefore . implode('', $medalImages) . $wrapAfter;
}