feat(checkout): map editing policy to cart controls

This commit is contained in:
2026-08-20 10:56:33 -03:00
parent 00a01e1a8e
commit e1d9590905
7 changed files with 238 additions and 16 deletions

View File

@@ -6,7 +6,12 @@
<h2 class="m-0 text-uppercase fw-bold cart-title">{{ title() }}</h2>
<div class="d-flex align-items-center cart-header-actions">
@if (!readonly() && allowModify() && requireEditingMode() && items().length > 0) {
@if (
allowModify() &&
(!readonly() || showModifyWhenReadonly()) &&
requireEditingMode() &&
items().length > 0
) {
<button
class="btn btn-link p-0 border-0 cart-edit-btn"
type="button"