diff --git a/src/components/layout/header/Header.tsx b/src/components/layout/header/Header.tsx
index 5eeadc149..44bb12b51 100644
--- a/src/components/layout/header/Header.tsx
+++ b/src/components/layout/header/Header.tsx
@@ -42,7 +42,7 @@ export function Header(props: any) {
>
{!editModeEnabled && }
- {!editModeEnabled && }
+
void,
t: (key: string) => string,
) {
- showNotification({
+ notifications.show({
id: containerId,
loading: true,
title: `${t(`actions.${action}.start`)} ${containerName}`,
@@ -38,7 +38,7 @@ function sendDockerCommand(
axios
.get(`/api/docker/container/${containerId}?action=${action}`)
.then((res) => {
- updateNotification({
+ notifications.show({
id: containerId,
title: containerName,
message: `${t(`actions.${action}.end`)} ${containerName}`,
@@ -47,7 +47,7 @@ function sendDockerCommand(
});
})
.catch((err) => {
- updateNotification({
+ notifications.update({
id: containerId,
color: 'red',
title: t('errors.unknownError.title'),
@@ -71,6 +71,10 @@ export default function ContainerActionBar({ selected, reload }: ContainerAction
const { name: configName, config } = useConfigContext();
const getLowestWrapper = () => config?.wrappers.sort((a, b) => a.position - b.position)[0];
+ if (process.env.DISABLE_EDIT_MODE === 'true') {
+ return null;
+ }
+
return (