Unverified Commit 12335811 authored by CMC's avatar CMC Committed by GitHub
Browse files

fix: hide aggregate button (#4019) (#4020)

No related merge requests found
Showing with 10 additions and 8 deletions
+10 -8
......@@ -47,7 +47,7 @@ func (f *ComponentReleaseFilter) Render(ctx context.Context, component *cptype.C
}
if event.Operation == cptype.InitializeOperation {
f.State.Values.Latest = true
//f.State.Values.Latest = true
if err := f.DecodeURLQuery(); err != nil {
return errors.Errorf("failed to decode url query for release filter component, %v", err)
}
......@@ -236,13 +236,15 @@ func (f *ComponentReleaseFilter) RenderFilter() error {
}
userCondition.Options = userOptions
f.Data.Conditions = append(f.Data.Conditions, userCondition)
if !f.State.IsProjectRelease {
f.Data.Conditions = append(f.Data.Conditions, Condition{
Key: "latest",
Label: f.sdk.I18n("aggregateByBranch"),
Type: "checkbox",
})
}
//if !f.State.IsProjectRelease {
// f.Data.Conditions = append(f.Data.Conditions, Condition{
// Key: "latest",
// Label: f.sdk.I18n("aggregateByBranch"),
// Type: "checkbox",
// })
//}
return nil
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment