mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
render login page on SERVER_LOCK (#1172)
This commit is contained in:
@@ -13,8 +13,6 @@ import { DropdownMenu, MenuItemProps } from '/@/shared/components/dropdown-menu/
|
||||
import { Icon } from '/@/shared/components/icon/icon';
|
||||
import { toast } from '/@/shared/components/toast/toast';
|
||||
|
||||
const localSettings = isElectron() ? window.api.localSettings : null;
|
||||
|
||||
const browser = isElectron() ? window.api.browser : null;
|
||||
|
||||
interface BaseMenuItem {
|
||||
@@ -177,7 +175,7 @@ export const AppMenu = () => {
|
||||
type: 'divider',
|
||||
},
|
||||
{
|
||||
condition: !localSettings?.env.SERVER_LOCK,
|
||||
condition: !window.SERVER_LOCK,
|
||||
id: 'manage-servers',
|
||||
item: {
|
||||
label: t('page.appMenu.manageServers', { postProcess: 'sentenceCase' }),
|
||||
|
||||
Reference in New Issue
Block a user