fix: excess copy

This commit is contained in:
Arman
2023-11-17 18:47:20 +01:00
parent fb41c91356
commit 9d1c3d016a
3 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -104,7 +104,7 @@
<svelte:component this={$page.data.breadcrumbs} />
{/if}
{#if !$page.url.pathname.includes('/console/account') && ($readOnly.bandwidth || $readOnly.storage || $readOnly.documents || $readOnly.users || $readOnly.executions)}
{#if !$page.url.pathname.includes('/console/account') && true}
<Pill danger button on:click={() => ($showExcess = true)}>
<div>
<span class="icon-exclamation-circle" aria-hidden="true" />
@@ -1,7 +1,7 @@
<script lang="ts">
import { Modal } from '$lib/components';
import { sizeToBytes } from '$lib/helpers/sizeConvertion';
import { plansInfo } from '$lib/stores/billing';
import { plansInfo, tierToPlan } from '$lib/stores/billing';
import { organization } from '$lib/stores/organization';
import { onMount } from 'svelte';
import PlanExcess from '../wizard/cloudOrganizationChangeTier/planExcess.svelte';
@@ -42,6 +42,14 @@
</script>
<Modal bind:show title="Limit reached">
<svelte:fragment slot="title">
Your usage exceeds the {tierToPlan($organization.billingPlan).name} plan limits
</svelte:fragment>
<p class="text">
Usage for <b>{$organization.name}</b> organization has reached the limits of the {tierToPlan(
$organization.billingPlan
).name} plan. Consider upgrading to increase your resource usage.
</p>
<PlanExcess {excess} currentTier={$organization.billingPlan} />
<svelte:fragment slot="footer">
<Button
@@ -57,7 +57,7 @@
</svelte:fragment>
</Alert>
<TableScroll>
<TableScroll noMargin>
<TableHeader>
<TableCellHead>Resource</TableCellHead>
<TableCellHead>Free limit</TableCellHead>