1
0
mirror of https://github.com/amir20/dozzle.git synced 2026-01-05 04:15:31 +01:00

feat: shows error message when container is not found (#2213)

This commit is contained in:
Amir Raminfar
2023-05-23 12:11:54 -07:00
committed by GitHub
parent fc0c189e38
commit f0424e1e94
5 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,11 @@
<template>
<search></search>
<log-container :id="id" show-title :scrollable="activeContainers.length > 0"> </log-container>
<log-container :id="id" show-title :scrollable="activeContainers.length > 0" v-if="currentContainer"></log-container>
<div v-else-if="ready" class="notification is-warning is-light m-6">
<h1 class="title">
{{ $t("error.container-not-found") }}
</h1>
</div>
</template>
<script lang="ts" setup>
@@ -9,7 +14,7 @@ const store = useContainerStore();
const { id } = defineProps<{ id: string }>();
const currentContainer = store.currentContainer($$(id));
const { activeContainers } = storeToRefs(store);
const { activeContainers, ready } = storeToRefs(store);
setTitle("loading");

View File

@@ -19,6 +19,7 @@ error:
page-not-found: This page does not exist.
invalid-auth: Username and password are not valid.
logs-skipped: Skipped {total} entries
container-not-found: Container not found.
title:
page-not-found: Page not found
login: Authentication Required

View File

@@ -19,6 +19,7 @@ error:
page-not-found: Esta página no existe.
invalid-auth: El nombre de usuario y la contraseña no son válidos.
logs-skipped: Omitidas {total} entrada/s
container-not-found: Contenedor no encontrado.
title:
page-not-found: Página no encontrada
login: Autenticación requerida

View File

@@ -19,6 +19,7 @@ error:
page-not-found: Esta página não existe.
invalid-auth: O nome de usuário e a senha não são válidos.
logs-skipped: Saltado {total} entradas
container-not-found: Contentor não encontrado.
title:
page-not-found: Página não encontrada
login: Autenticação Requerida

View File

@@ -19,6 +19,7 @@ error:
page-not-found: Эта страница не доступна.
invalid-auth: Имя пользователя или пароль неверны.
logs-skipped: Пропущено {total} записей
container-not-found: Контейнер не найден.
title:
page-not-found: Страница не найдена
login: Требуется авторизация