Skip to content

Commit c1e6cc8

Browse files
authored
fix: add title, icon, invisible, and authLevel to shared entrances (#150)
1 parent 8aaa850 commit c1e6cc8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pkg/app_service/v1/internal.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,20 @@ func (c *Client) getAppListFromData(apps []map[string]interface{}) ([]*AppInfo,
163163
if t, ok := entranceMap["url"]; ok {
164164
appEntrance.URL = stringOrEmpty(t)
165165
}
166+
if t, ok := entranceMap["title"]; ok {
167+
appEntrance.Title = stringOrEmpty(t)
168+
}
169+
if t, ok := entranceMap["icon"]; ok {
170+
appEntrance.Icon = stringOrEmpty(t)
171+
}
172+
if t, ok := entranceMap["invisible"]; ok && t.(bool) == true {
173+
appEntrance.Invisible = true
174+
}
175+
if t, ok := entranceMap["authLevel"]; ok {
176+
appEntrance.AuthLevel = stringOrEmpty(t)
177+
}
178+
// appEntrance.State = state
179+
166180
appSharedEntrances = append(appSharedEntrances, appEntrance)
167181
}
168182
}

0 commit comments

Comments
 (0)