|
@@ -148,6 +148,8 @@ func buildDefaultDashboard(rr *DashboardRenderRequest) *apiv1.Dashboard {
|
|
|
Contents: make([]*apiv1.DashboardComponent, 0),
|
|
Contents: make([]*apiv1.DashboardComponent, 0),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ rr.ex.MapActionBindingsLock.RLock()
|
|
|
|
|
+
|
|
|
for _, binding := range rr.ex.MapActionBindings {
|
|
for _, binding := range rr.ex.MapActionBindings {
|
|
|
if !defaultBindingEligibleForDashboard(rr, binding) {
|
|
if !defaultBindingEligibleForDashboard(rr, binding) {
|
|
|
continue
|
|
continue
|
|
@@ -158,6 +160,8 @@ func buildDefaultDashboard(rr *DashboardRenderRequest) *apiv1.Dashboard {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ rr.ex.MapActionBindingsLock.RUnlock()
|
|
|
|
|
+
|
|
|
if len(fieldset.Contents) > 0 {
|
|
if len(fieldset.Contents) > 0 {
|
|
|
fieldset.Contents = sortDashboardComponents(fieldset.Contents)
|
|
fieldset.Contents = sortDashboardComponents(fieldset.Contents)
|
|
|
db.Contents = append(db.Contents, fieldset)
|
|
db.Contents = append(db.Contents, fieldset)
|