Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions src/lib/components/logs/logsResponse.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
Loading