diff --git a/frontend/src/pages/Docker.jsx b/frontend/src/pages/Docker.jsx index 3c154d10..121d17de 100644 --- a/frontend/src/pages/Docker.jsx +++ b/frontend/src/pages/Docker.jsx @@ -172,8 +172,20 @@ const Docker = () => { return `${total} B`; } + const tabs = [ + { id: 'containers', label: t('app.docker.containers', 'Containers'), icon: Box }, + { id: 'compose', label: t('app.docker.compose', 'Compose'), icon: Package }, + { id: 'images', label: t('app.docker.images', 'Images'), icon: Layers }, + { id: 'volumes', label: t('app.docker.volumes', 'Volumes'), icon: HardDrive }, + { id: 'networks', label: t('app.docker.networks', 'Networks'), icon: NetworkIcon }, + ].map(({ id, label, icon: Icon }) => ({ to: `/docker/${id}`, label, icon: })); + if (loading) { - return ; + return ( + } title={t('common.labels.docker', 'Docker')} tabs={tabs}> + + + ); } if (!dockerStatus?.installed) { @@ -222,14 +234,6 @@ const Docker = () => { ); } - const tabs = [ - { id: 'containers', label: t('app.docker.containers', 'Containers'), icon: Box }, - { id: 'compose', label: t('app.docker.compose', 'Compose'), icon: Package }, - { id: 'images', label: t('app.docker.images', 'Images'), icon: Layers }, - { id: 'volumes', label: t('app.docker.volumes', 'Volumes'), icon: HardDrive }, - { id: 'networks', label: t('app.docker.networks', 'Networks'), icon: NetworkIcon }, - ].map(({ id, label, icon: Icon }) => ({ to: `/docker/${id}`, label, icon: })); - const hasMultipleTargets = availableServers.length > 1; const serverContextValue = { diff --git a/frontend/src/pages/QueueOperations.jsx b/frontend/src/pages/QueueOperations.jsx index 9e824a67..e3db6002 100644 --- a/frontend/src/pages/QueueOperations.jsx +++ b/frontend/src/pages/QueueOperations.jsx @@ -462,12 +462,9 @@ const QueueOperations = () => { if (loading) { return ( -
-
- - {t('app.queueOperations.loadingQueueBus', 'Loading queue bus…')} -
-
+ } title={t('app.queueOperations.queueBus', 'Queue bus')}> + + ); }