Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Erda
Commits
12335811
Unverified
Commit
12335811
authored
3 years ago
by
CMC
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: hide aggregate button (#4019) (#4020)
parent
2370a072
release/1.6-alpha.2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/dop/component-protocol/components/release-manage/releaseFilter/render.go
+10
-8
...rotocol/components/release-manage/releaseFilter/render.go
with
10 additions
and
8 deletions
+10
-8
modules/dop/component-protocol/components/release-manage/releaseFilter/render.go
+
10
-
8
View file @
12335811
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help