mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
Add default status check
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { i18n } from 'next-i18next';
|
||||||
import { MobileRibbons } from './Mobile/Ribbon/MobileRibbon';
|
import { MobileRibbons } from './Mobile/Ribbon/MobileRibbon';
|
||||||
import { DashboardDetailView } from './Views/DetailView';
|
import { DashboardDetailView } from './Views/DetailView';
|
||||||
import { DashboardEditView } from './Views/EditView';
|
import { DashboardEditView } from './Views/EditView';
|
||||||
@@ -5,6 +6,7 @@ import { useEditModeStore } from './Views/useEditModeStore';
|
|||||||
|
|
||||||
export const Dashboard = () => {
|
export const Dashboard = () => {
|
||||||
const isEditMode = useEditModeStore((x) => x.enabled);
|
const isEditMode = useEditModeStore((x) => x.enabled);
|
||||||
|
i18n?.changeLanguage('cimode');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ export const AvailableElementTypes = ({
|
|||||||
iconUrl: '/imgs/logo/logo.png',
|
iconUrl: '/imgs/logo/logo.png',
|
||||||
},
|
},
|
||||||
network: {
|
network: {
|
||||||
enabledStatusChecker: false,
|
enabledStatusChecker: true,
|
||||||
okStatus: [],
|
okStatus: [200],
|
||||||
},
|
},
|
||||||
behaviour: {
|
behaviour: {
|
||||||
isOpeningNewTab: true,
|
isOpeningNewTab: true,
|
||||||
|
|||||||
@@ -170,8 +170,8 @@ export default function ContainerActionBar({ selected, reload }: ContainerAction
|
|||||||
iconUrl: '/imgs/logo/logo.png', // TODO: find icon automatically
|
iconUrl: '/imgs/logo/logo.png', // TODO: find icon automatically
|
||||||
},
|
},
|
||||||
network: {
|
network: {
|
||||||
enabledStatusChecker: false,
|
enabledStatusChecker: true,
|
||||||
okStatus: [],
|
okStatus: [200],
|
||||||
},
|
},
|
||||||
behaviour: {
|
behaviour: {
|
||||||
isOpeningNewTab: true,
|
isOpeningNewTab: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user