cleanup: remove tenant variant logic and enforce config-driven UI

This commit is contained in:
sdarbinyan
2026-07-05 04:07:25 +04:00
parent 79a12c0ec2
commit 6550250d13
19 changed files with 153 additions and 1102 deletions

View File

@@ -1,4 +1,4 @@
<div [class]="isMarketplaceNovo ? 'cart-container novo' : 'cart-container dexar'">
<div class="cart-container dexar">
<div class="cart-header">
<h1>{{ 'cart.title' | translate }}</h1>
@if (itemCount() > 0) {

View File

@@ -15,7 +15,6 @@ import { LangRoutePipe } from '../../pipes/lang-route.pipe';
import { TranslatePipe } from '../../i18n/translate.pipe';
import { TranslateService } from '../../i18n/translate.service';
import { PAYMENT_POLL_INTERVAL_MS, PAYMENT_MAX_CHECKS, PAYMENT_TIMEOUT_CLOSE_MS, LINK_COPIED_DURATION_MS } from '../../config/constants';
import { UiRuntimeFacade } from '../../facades/runtime/ui-runtime.facade';
type PaymentMethod = 'qr' | 'card';
@@ -35,14 +34,9 @@ export class CartComponent implements OnDestroy {
hasDeliveryPrice;
allRequiredDeliveriesSelected;
termsAccepted = false;
private readonly uiRuntime = inject(UiRuntimeFacade);
private i18n = inject(TranslateService);
private authService = inject(AuthService);
get isMarketplaceNovo(): boolean {
return this.uiRuntime.isMarketplaceVariant('novo');
}
isAuthenticated = this.authService.isAuthenticated;