feat: display plugin started error reason

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/3445/head
Ryan Wang 2022-07-25 19:53:27 +08:00
parent c3875c0671
commit 28367a0c81
1 changed files with 5 additions and 2 deletions

View File

@ -274,7 +274,7 @@ onMounted(handleFetchPlugins);
class="inline-flex flex-col flex-col-reverse items-end gap-4 sm:flex-row sm:items-center sm:gap-6" class="inline-flex flex-col flex-col-reverse items-end gap-4 sm:flex-row sm:items-center sm:gap-6"
> >
<FloatingTooltip <FloatingTooltip
v-if="!plugin.spec.enabled" v-if="plugin.status?.phase === 'FAILED'"
class="hidden items-center sm:flex" class="hidden items-center sm:flex"
> >
<div <div
@ -284,7 +284,10 @@ onMounted(handleFetchPlugins);
class="inline-block h-1.5 w-1.5 animate-ping rounded-full bg-red-600" class="inline-block h-1.5 w-1.5 animate-ping rounded-full bg-red-600"
></span> ></span>
</div> </div>
<template #popper> 启动异常</template> <template #popper>
{{ plugin.status?.reason }}:
{{ plugin.status?.message }}
</template>
</FloatingTooltip> </FloatingTooltip>
<a <a
:href="plugin.spec.homepage" :href="plugin.spec.homepage"