fix: logs and redeploy aler

This commit is contained in:
Arman
2025-05-20 11:57:38 +02:00
parent 7939bbc565
commit 70da5f655f
3 changed files with 27 additions and 13 deletions
+6 -12
View File
@@ -16,10 +16,6 @@
import { onMount } from 'svelte';
import LoggingAlert from './loggingAlert.svelte';
// export let selectedLog: Models.Execution;
// export let product: 'site' | 'function';
// export let logging: boolean;
let {
selectedLog,
product,
@@ -58,14 +54,12 @@
on:click={() => (responseTab = 'logs')}>
Logs
</Tabs.Item.Button>
{#if product !== 'site'}
<Tabs.Item.Button
{root}
active={responseTab === 'errors'}
on:click={() => (responseTab = 'errors')}>
Errors
</Tabs.Item.Button>
{/if}
<Tabs.Item.Button
{root}
active={responseTab === 'errors'}
on:click={() => (responseTab = 'errors')}>
Errors
</Tabs.Item.Button>
<Tabs.Item.Button
{root}
active={responseTab === 'headers'}
@@ -64,6 +64,16 @@
<Alert.Inline status="warning" dismissible on:dismiss={() => (showAlert = false)}>
Some configuration options are not live yet. Redeploy your function to apply latest
changes.
<svelte:fragment slot="actions">
<Button
compact
on:click={() => {
selectedDeployment = data.activeDeployment;
showRedeploy = true;
}}>
Redeploy
</Button>
</svelte:fragment>
</Alert.Inline>
{/if}
<Layout.Stack gap="xxxl">
@@ -78,8 +78,18 @@
<Layout.Stack gap="xxxl">
{#if data?.activeDeployment && !data.site.live && showAlert}
<Alert.Inline status="warning" dismissible on:dismiss={() => (showAlert = false)}>
Some configuration options are not live yet. Redeploy your function to apply latest
Some configuration options are not live yet. Redeploy your site to apply latest
changes.
<svelte:fragment slot="actions">
<Button
compact
on:click={() => {
selectedDeployment = data.activeDeployment;
showRedeploy = true;
}}>
Redeploy
</Button>
</svelte:fragment>
</Alert.Inline>
{/if}