diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 60d5339f5..01ff984b9 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -357,7 +357,7 @@ export const usageRates = { ] }; -//resources: bandwidth, buckets, file size limit, functions, executions, users,teams, members, platforms, webhooks, databases, connections, messages +//resources: bandwidth, buckets, file size limit, functions, executions, users,teams,logs, members, platforms, webhooks, databases, connections, messages export const limitRates = { 'tier-0': [ { @@ -396,6 +396,13 @@ export const limitRates = { amount: 1, unit: '' }, + + { + id: 'logs', + amount: 1, + unit: '' + }, + { id: 'members', amount: 1, @@ -464,6 +471,11 @@ export const limitRates = { amount: 1, unit: '' }, + { + id: 'logs', + amount: 1, + unit: '' + }, { id: 'members', amount: 1, @@ -532,6 +544,11 @@ export const limitRates = { amount: 1, unit: '' }, + { + id: 'logs', + amount: 1, + unit: '' + }, { id: 'members', amount: 1, diff --git a/src/lib/layout/containerHeader.svelte b/src/lib/layout/containerHeader.svelte index 79c25246f..f57f473a8 100644 --- a/src/lib/layout/containerHeader.svelte +++ b/src/lib/layout/containerHeader.svelte @@ -47,7 +47,7 @@
{title} - {#if isCloud} + {#if isCloud && limit !== 'unlimited' && limit < Infinity}
-
- -
+ {#if buttonText} +
+ +
+ {/if}
diff --git a/src/routes/console/project-[project]/auth/user-[user]/sessions/+page.svelte b/src/routes/console/project-[project]/auth/user-[user]/sessions/+page.svelte index eaa1e1cc2..7d88c1163 100644 --- a/src/routes/console/project-[project]/auth/user-[user]/sessions/+page.svelte +++ b/src/routes/console/project-[project]/auth/user-[user]/sessions/+page.svelte @@ -11,7 +11,7 @@ TableHeader, TableRow } from '$lib/elements/table'; - import { Container } from '$lib/layout'; + import { Container, ContainerHeader } from '$lib/layout'; import { sdk } from '$lib/stores/sdk'; import DeleteAllSessions from '../deleteAllSessions.svelte'; import DeleteSessions from '../deleteSession.svelte'; @@ -28,12 +28,14 @@ - {#if data.sessions.total} -
+ + {#if data.sessions.total} -
+ {/if} + + {#if data.sessions.total} Browser and Device