feat: overhaul server automation, files editor, and CS2 setup workflows
This commit is contained in:
@@ -133,6 +133,10 @@ function ConfigEditor({
|
||||
? entries.filter((e) => configFile.editableKeys!.includes(e.key))
|
||||
: entries;
|
||||
|
||||
const entriesToSave = configFile.editableKeys
|
||||
? entries.filter((e) => configFile.editableKeys!.includes(e.key))
|
||||
: entries;
|
||||
|
||||
return (
|
||||
<Card>
|
||||
<CardHeader className="flex flex-row items-center justify-between">
|
||||
@@ -149,7 +153,7 @@ function ConfigEditor({
|
||||
</div>
|
||||
<Button
|
||||
size="sm"
|
||||
onClick={() => saveMutation.mutate({ entries })}
|
||||
onClick={() => saveMutation.mutate({ entries: entriesToSave })}
|
||||
disabled={saveMutation.isPending}
|
||||
>
|
||||
<Save className="h-4 w-4" />
|
||||
|
||||
Reference in New Issue
Block a user