mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 23:15:46 +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 { DashboardDetailView } from './Views/DetailView';
|
||||
import { DashboardEditView } from './Views/EditView';
|
||||
@@ -5,6 +6,7 @@ import { useEditModeStore } from './Views/useEditModeStore';
|
||||
|
||||
export const Dashboard = () => {
|
||||
const isEditMode = useEditModeStore((x) => x.enabled);
|
||||
i18n?.changeLanguage('cimode');
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -97,8 +97,8 @@ export const AvailableElementTypes = ({
|
||||
iconUrl: '/imgs/logo/logo.png',
|
||||
},
|
||||
network: {
|
||||
enabledStatusChecker: false,
|
||||
okStatus: [],
|
||||
enabledStatusChecker: true,
|
||||
okStatus: [200],
|
||||
},
|
||||
behaviour: {
|
||||
isOpeningNewTab: true,
|
||||
|
||||
@@ -170,8 +170,8 @@ export default function ContainerActionBar({ selected, reload }: ContainerAction
|
||||
iconUrl: '/imgs/logo/logo.png', // TODO: find icon automatically
|
||||
},
|
||||
network: {
|
||||
enabledStatusChecker: false,
|
||||
okStatus: [],
|
||||
enabledStatusChecker: true,
|
||||
okStatus: [200],
|
||||
},
|
||||
behaviour: {
|
||||
isOpeningNewTab: true,
|
||||
|
||||
Reference in New Issue
Block a user