feat: updates labels between running and all containers (#2742)
@@ -108,7 +108,7 @@ function isContainer(item: any): item is Container {
|
||||
|
||||
const menuItems = computed(() => {
|
||||
const pinnedLabel = { keyLabel: "label.pinned" };
|
||||
const allLabel = { keyLabel: "label.containers" };
|
||||
const allLabel = { keyLabel: showAllContainers.value ? "label.all-containers" : "label.running-containers" };
|
||||
if (groupedContainers.value.pinned.length > 0) {
|
||||
return [pinnedLabel, ...groupedContainers.value.pinned, allLabel, ...groupedContainers.value.unpinned];
|
||||
} else {
|
||||
|
||||
@@ -34,6 +34,6 @@ test.describe("es locale", () => {
|
||||
test.use({ locale: "es" });
|
||||
|
||||
test("translated text", async ({ page }) => {
|
||||
await expect(page.getByTestId("label.containers")).toHaveText("Contenedores");
|
||||
await expect(page.getByTestId("label.running-containers")).toHaveText("Contenedores en ejecución");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -5,5 +5,5 @@ test("simple authentication", async ({ page }) => {
|
||||
await page.locator('input[name="username"]').fill("admin");
|
||||
await page.locator('input[name="password"]').fill("password");
|
||||
await page.locator('button[type="submit"]').click();
|
||||
await expect(page.getByTestId("label.containers")).toHaveText("Containers");
|
||||
await expect(page.getByTestId("label.running-containers")).toHaveText("Running Containers");
|
||||
});
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@@ -6,6 +6,8 @@ toolbar:
|
||||
show-all: Zeige alle Streams
|
||||
label:
|
||||
containers: Container
|
||||
running-containers: Laufende Container
|
||||
all-containers: Alle Container
|
||||
total-containers: Gesamte Container
|
||||
running: Laufende
|
||||
total-cpu-usage: Gesamte CPU Auslastung
|
||||
|
||||
@@ -9,6 +9,8 @@ toolbar:
|
||||
restart: Restart
|
||||
label:
|
||||
containers: Containers
|
||||
running-containers: Running Containers
|
||||
all-containers: All Containers
|
||||
total-containers: Total Containers
|
||||
running: Running
|
||||
total-cpu-usage: Total CPU Usage
|
||||
|
||||
@@ -9,6 +9,8 @@ toolbar:
|
||||
restart: Reiniciar
|
||||
label:
|
||||
containers: Contenedores
|
||||
running-containers: Contenedores en ejecución
|
||||
all-containers: Todos los contenedores
|
||||
total-containers: Contenedores Totales
|
||||
running: En ejecución
|
||||
total-cpu-usage: Uso total del Procesador
|
||||
|
||||
@@ -6,6 +6,8 @@ toolbar:
|
||||
show-all: Mostrar todos os fluxos
|
||||
label:
|
||||
containers: Contentores
|
||||
running-containers: Contentores em execução
|
||||
all-containers: Todos os contentores
|
||||
total-containers: Contentores Totais
|
||||
running: Em execução
|
||||
total-cpu-usage: Utilização total da CPU
|
||||
|
||||
@@ -6,6 +6,8 @@ toolbar:
|
||||
show-all: Показать все потоки
|
||||
label:
|
||||
containers: Контейнеры
|
||||
running-containers: Запущенные контейнеры
|
||||
all-containers: Все контейнеры
|
||||
total-containers: Всего Контейнеров
|
||||
running: Запущенные
|
||||
total-cpu-usage: Использование процессора
|
||||
|
||||
@@ -6,6 +6,8 @@ toolbar:
|
||||
show-all: 顯示全部資料流
|
||||
label:
|
||||
containers: 容器
|
||||
running-containers: 運行中的容器
|
||||
all-containers: 所有容器
|
||||
total-containers: 總容器數
|
||||
running: 運行中
|
||||
total-cpu-usage: 總 CPU 使用率
|
||||
|
||||
@@ -6,6 +6,8 @@ toolbar:
|
||||
show-all: 显示全部
|
||||
label:
|
||||
containers: 容器
|
||||
running-containers: 运行中的容器
|
||||
all-containers: 所有容器
|
||||
total-containers: 所有容器
|
||||
running: 运行中
|
||||
total-cpu-usage: 所有CPU使用率
|
||||
|
||||