mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: logs and redeploy aler
This commit is contained in:
@@ -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'}
|
||||
|
||||
+10
@@ -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">
|
||||
|
||||
+11
-1
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user