add disableAI to config
This commit is contained in:
13 files changed
+24
-6
No files matched your search
@@ -235,7 +235,8 @@ export function useSetPerformanceSettings(slug: string) {
|
||||
`/api/servers/${slug}/config/performance`,
|
||||
settings,
|
||||
),
|
||||
onSuccess: () => {
|
||||
onSuccess: (result) => {
|
||||
queryClient.setQueryData(['servers', slug, 'config', 'performance'], result);
|
||||
void queryClient.invalidateQueries({ queryKey: ['servers', slug] });
|
||||
},
|
||||
});
|
||||
|
||||
@@ -52,6 +52,7 @@ const NUMBER_FIELDS: { key: NumberKey; label: string; min: number; max: number;
|
||||
];
|
||||
|
||||
const BOOLEAN_FIELDS: { key: BooleanKey; label: string; hint: string }[] = [
|
||||
{ key: 'disableAI', label: 'Disable AI', hint: 'default enabled' },
|
||||
{ key: 'disableThirdPerson', label: 'Disable third person', hint: 'default disabled' },
|
||||
{ key: 'fastValidation', label: 'Fast validation', hint: 'default enabled' },
|
||||
{ key: 'battlEye', label: 'BattlEye', hint: 'default enabled' },
|
||||
|
||||
@@ -42,7 +42,7 @@ function ConfigurationsBody({ slug, user }: { slug: string; user: CurrentUser })
|
||||
<h1 className="page-title">Configuration</h1>
|
||||
<MissionCard slug={slug} canEdit={canEdit} />
|
||||
<PerformanceForm slug={slug} canEdit={canEdit} />
|
||||
<SchedulesCard slug={slug} canEdit={canEdit} />
|
||||
{/*<SchedulesCard slug={slug} canEdit={canEdit} />*/}
|
||||
{canEdit && <StartupVarsCard slug={slug} />}
|
||||
<Card title="Full config summary (live from the server)">
|
||||
{config ? <ConfigSummaryRows config={config} /> : <Spinner />}
|
||||
|
||||
Reference in new issue
Block a user