mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-09 13:06:45 +03:00
fixed default overide
This commit is contained in:
@@ -50,12 +50,12 @@ export function ConfigTabs() {
|
|||||||
preserveOrgStructure: false,
|
preserveOrgStructure: false,
|
||||||
},
|
},
|
||||||
scheduleConfig: {
|
scheduleConfig: {
|
||||||
enabled: true, // Default to enabled
|
enabled: false, // Don't set defaults here - will be loaded from API
|
||||||
interval: 86400, // Default to daily (24 hours)
|
interval: 0, // Will be replaced with actual value from API
|
||||||
},
|
},
|
||||||
cleanupConfig: {
|
cleanupConfig: {
|
||||||
enabled: true, // Default to enabled
|
enabled: false, // Don't set defaults here - will be loaded from API
|
||||||
retentionDays: 604800, // 7 days in seconds - Default retention period
|
retentionDays: 0, // Will be replaced with actual value from API
|
||||||
},
|
},
|
||||||
mirrorOptions: {
|
mirrorOptions: {
|
||||||
mirrorReleases: false,
|
mirrorReleases: false,
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ export function ScheduleConfigForm({
|
|||||||
htmlFor="interval"
|
htmlFor="interval"
|
||||||
className="block text-sm font-medium mb-1.5"
|
className="block text-sm font-medium mb-1.5"
|
||||||
>
|
>
|
||||||
Mirroring Interval
|
Sync Interval
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<Select
|
<Select
|
||||||
@@ -122,7 +122,7 @@ export function ScheduleConfigForm({
|
|||||||
</Select>
|
</Select>
|
||||||
|
|
||||||
<p className="text-xs text-muted-foreground mt-1">
|
<p className="text-xs text-muted-foreground mt-1">
|
||||||
How often the mirroring process should run.
|
How often the sync process should run.
|
||||||
</p>
|
</p>
|
||||||
<div className="mt-2 p-2 bg-muted/50 rounded-md">
|
<div className="mt-2 p-2 bg-muted/50 rounded-md">
|
||||||
<p className="text-xs text-muted-foreground">
|
<p className="text-xs text-muted-foreground">
|
||||||
|
|||||||
Reference in New Issue
Block a user