1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

refactor(portainer): remove offline mode [EE-4348] (#7761)

Co-authored-by: deviantony <anthony.lapenna@portainer.io>
This commit is contained in:
Chaim Lev-Ari 2022-11-21 09:50:47 +02:00 committed by GitHub
parent 61e8e68c31
commit 75f40fe485
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 28 additions and 311 deletions

View file

@ -14,7 +14,6 @@ import {
import {
type Environment,
type EnvironmentId,
EnvironmentStatus,
} from '@/react/portainer/environments/types';
import { Authorized, useUser, isEnvironmentAdmin } from '@/react/hooks/useUser';
import { useInfo, useVersion } from '@/docker/services/system.service';
@ -47,8 +46,6 @@ export function DockerSidebar({ environmentId, environment }: Props) {
const isSwarmManager = envInfoQuery.data;
const apiVersion = envVersionQuery.data || 0;
const offlineMode = environment.Status === EnvironmentStatus.Down;
const setupSubMenuProps = isSwarmManager
? {
label: 'Swarm',
@ -163,7 +160,7 @@ export function DockerSidebar({ environmentId, environment }: Props) {
/>
)}
{!isSwarmManager && isAdmin && !offlineMode && (
{!isSwarmManager && isAdmin && (
<SidebarItem
to="docker.events"
params={{ endpointId: environmentId }}