mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Show view logs link if logs are not empty
This commit is contained in:
+24
-20
@@ -96,16 +96,18 @@
|
||||
variant="secondary"
|
||||
content="Generating certificate"
|
||||
size="xs" />
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = proxyRule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{#if proxyRule.logs && proxyRule.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = proxyRule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{:else if proxyRule.status === 'unverified'}
|
||||
<Layout.Stack direction="row" gap="s" alignItems="center">
|
||||
@@ -114,16 +116,18 @@
|
||||
type="error"
|
||||
content="Certificate generation failed"
|
||||
size="xs" />
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = proxyRule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{#if proxyRule.logs && proxyRule.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = proxyRule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
|
||||
@@ -103,16 +103,18 @@
|
||||
variant="secondary"
|
||||
content="Generating certificate"
|
||||
size="xs" />
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedDomain = domain;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{#if domain.logs && domain.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedDomain = domain;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{:else if domain.status === 'unverified'}
|
||||
<Layout.Stack direction="row" gap="s" alignItems="center">
|
||||
@@ -121,16 +123,18 @@
|
||||
type="error"
|
||||
content="Certificate generation failed"
|
||||
size="xs" />
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedDomain = domain;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{#if domain.logs && domain.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedDomain = domain;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
|
||||
+24
-20
@@ -97,16 +97,18 @@
|
||||
variant="secondary"
|
||||
content="Generating certificate"
|
||||
size="xs" />
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = rule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{#if rule.logs && rule.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = rule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{:else if rule.status === 'unverified'}
|
||||
<Layout.Stack direction="row" gap="s" alignItems="center">
|
||||
@@ -115,16 +117,18 @@
|
||||
type="error"
|
||||
content="Certificate generation failed"
|
||||
size="xs" />
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = rule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{#if rule.logs && rule.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = rule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
|
||||
Reference in New Issue
Block a user