File tree 3 files changed +13
-7
lines changed
modules/cmp/component-protocol/components
cmp-dashboard-events-list/eventTable
cmp-dashboard-workload-detail/restartButton
3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -375,10 +375,10 @@ func (t *ComponentEventTable) SetComponentValue(ctx context.Context) {
375
375
}
376
376
}
377
377
378
- func (t * ComponentEventTable ) Transfer (c * cptype.Component ) {
379
- c .Props = t .Props
380
- c .Data = map [string ]interface {}{"list" : t .Data .List }
381
- c .State = map [string ]interface {}{
378
+ func (t * ComponentEventTable ) Transfer (component * cptype.Component ) {
379
+ component .Props = t .Props
380
+ component .Data = map [string ]interface {}{"list" : t .Data .List }
381
+ component .State = map [string ]interface {}{
382
382
"clusterName" : t .State .ClusterName ,
383
383
"filterValues" : t .State .FilterValues ,
384
384
"pageNo" : t .State .PageNo ,
@@ -387,7 +387,7 @@ func (t *ComponentEventTable) Transfer(c *cptype.Component) {
387
387
"total" : t .State .Total ,
388
388
"eventTable__urlQuery" : t .State .EventTableUQLQuery ,
389
389
}
390
- c .Operations = t .Operations
390
+ component .Operations = t .Operations
391
391
}
392
392
393
393
func contain (arr []string , target string ) bool {
Original file line number Diff line number Diff line change @@ -42,8 +42,13 @@ type State struct {
42
42
}
43
43
44
44
type Props struct {
45
- Type string `json:"type"`
46
- Text string `json:"text"`
45
+ Type string `json:"type"`
46
+ Text string `json:"text"`
47
+ TipProps TipProps `json:"tipProps"`
48
+ }
49
+
50
+ type TipProps struct {
51
+ Placement string `json:"placement,omitempty"`
47
52
}
48
53
49
54
type Operation struct {
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ func (b *ComponentRestartButton) SetComponentValue() {
104
104
105
105
b .Props .Text = b .sdk .I18n ("restart" )
106
106
b .Props .Type = "primary"
107
+ b .Props .TipProps .Placement = "bottom"
107
108
108
109
operation := Operation {
109
110
Key : "restart" ,
You can’t perform that action at this time.
0 commit comments