Skip to content

Commit

Permalink
fix: hide aggregate button (#4019)
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigMChen authored Feb 11, 2022
1 parent 8124ebf commit 6fc8682
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -238,13 +238,13 @@ 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",
// })
//}
f.Data.Conditions = append(f.Data.Conditions, Condition{
Key: "version",
Label: "version",
Expand Down

0 comments on commit 6fc8682

Please # to comment.