fix: stop rendering duplicate period grid and pay button in legacy mode
This commit is contained in:
@@ -158,19 +158,17 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<EmptyCard>{t("wa_no_tariff_change_options")}</EmptyCard>
|
<EmptyCard>{t("wa_no_tariff_change_options")}</EmptyCard>
|
||||||
{/if}
|
{/if}
|
||||||
{:else}
|
{:else if tariffMode}
|
||||||
{#if tariffMode}
|
{#if !singleTariffMode && !(subscription?.active && subscription?.tariff_key && tariffCatalog.some((t) => t.key === subscription.tariff_key))}
|
||||||
{#if !singleTariffMode && !(subscription?.active && subscription?.tariff_key && tariffCatalog.some((t) => t.key === subscription.tariff_key))}
|
<button class="back-inline" type="button" onclick={backToTariffList}>
|
||||||
<button class="back-inline" type="button" onclick={backToTariffList}>
|
<ArrowLeft size={16} />
|
||||||
<ArrowLeft size={16} />
|
{t("wa_back_to_tariffs")}
|
||||||
{t("wa_back_to_tariffs")}
|
</button>
|
||||||
</button>
|
{/if}
|
||||||
{/if}
|
{#if hasMultipleTariffs && selectedTariff}
|
||||||
{#if hasMultipleTariffs && selectedTariff}
|
<p class="tariff-step-caption">
|
||||||
<p class="tariff-step-caption">
|
{t("wa_selected_tariff", { tariff: selectedTariff.title })}
|
||||||
{t("wa_selected_tariff", { tariff: selectedTariff.title })}
|
</p>
|
||||||
</p>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
{/if}
|
||||||
{#if selectedTariffPlans.length}
|
{#if selectedTariffPlans.length}
|
||||||
<div class="period-grid period-grid-two-columns">
|
<div class="period-grid period-grid-two-columns">
|
||||||
@@ -215,8 +213,13 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<EmptyCard>{t("wa_no_tariff_change_options")}</EmptyCard>
|
<EmptyCard>{t("wa_no_tariff_change_options")}</EmptyCard>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{:else}
|
||||||
{#if !tariffMode}
|
<!--
|
||||||
|
Legacy / non-tariff mode (no JSON tariffs catalog OR traffic-only).
|
||||||
|
Previously this block was also reached *in addition* to the tariff
|
||||||
|
branch above, so users on legacy mode saw the period grid, payment
|
||||||
|
method grid and pay button duplicated.
|
||||||
|
-->
|
||||||
<div class="period-grid period-grid-two-columns">
|
<div class="period-grid period-grid-two-columns">
|
||||||
{#each plans as plan}
|
{#each plans as plan}
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user