fix: instanzdetail zuverlässig öffnen
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 17s
Build and Push Docker Images / build-frontend (push) Successful in 17s
Build and Push Docker Images / build-website (push) Successful in 16s
Build and Push Docker Images / build-central-services-api (push) Successful in 23s
Build and Push Docker Images / build-central-services-admin (push) Successful in 42s
Build and Push Docker Images / build-docs (push) Successful in 17s
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 17s
Build and Push Docker Images / build-frontend (push) Successful in 17s
Build and Push Docker Images / build-website (push) Successful in 16s
Build and Push Docker Images / build-central-services-api (push) Successful in 23s
Build and Push Docker Images / build-central-services-admin (push) Successful in 42s
Build and Push Docker Images / build-docs (push) Successful in 17s
This commit is contained in:
@@ -67,6 +67,10 @@ async function rotateSecret(instance: Instance) {
|
||||
createdSecret.value = result.nextClientSecret;
|
||||
await refresh();
|
||||
}
|
||||
|
||||
async function openInstance(instance: Instance) {
|
||||
await navigateTo(`/instances/${encodeURIComponent(instance.id)}`);
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -114,7 +118,15 @@ async function rotateSecret(instance: Instance) {
|
||||
<UButton icon="i-lucide-key-round" variant="soft" @click="rotateSecret(instance)">Rotieren</UButton>
|
||||
<UButton v-if="instance.status !== 'active'" color="success" variant="soft" @click="patchInstance(instance, 'active')">Aktivieren</UButton>
|
||||
<UButton v-else color="error" variant="soft" @click="patchInstance(instance, 'blocked')">Sperren</UButton>
|
||||
<UButton icon="i-lucide-arrow-right" variant="ghost" :to="`/instances/${instance.id}`" />
|
||||
<UButton
|
||||
type="button"
|
||||
icon="i-lucide-arrow-right"
|
||||
trailing
|
||||
variant="ghost"
|
||||
@click="openInstance(instance)"
|
||||
>
|
||||
Öffnen
|
||||
</UButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-4 grid gap-3 text-sm md:grid-cols-3">
|
||||
|
||||
Reference in New Issue
Block a user