Changeset 0.37.7 (#219)
Co-authored-by: gobha <jasafpro@gmail.com> Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
@@ -217,6 +217,12 @@ func (e *Engine) registerCoreSurfaces() {
|
||||
DataRequires: []string{"settings"},
|
||||
Layout: "single", Source: "core",
|
||||
},
|
||||
{
|
||||
ID: "team-admin", Route: "/team-admin/:section", AltRoutes: []string{"/team-admin"},
|
||||
Title: "Team Admin", Template: "surface-team-admin", Auth: "authenticated",
|
||||
DataRequires: []string{"team-admin"},
|
||||
Layout: "single", Source: "core",
|
||||
},
|
||||
{
|
||||
ID: "workflow", Route: "/w/:id",
|
||||
Title: "Workflow", Template: "workflow", Auth: "session",
|
||||
@@ -337,6 +343,9 @@ func (e *Engine) RenderSurface(surfaceID string) gin.HandlerFunc {
|
||||
if section == "" && surfaceID == "settings" {
|
||||
section = "general"
|
||||
}
|
||||
if section == "" && surfaceID == "team-admin" {
|
||||
section = "members"
|
||||
}
|
||||
|
||||
e.Render(c, "base.html", PageData{
|
||||
Surface: surfaceID,
|
||||
|
||||
Reference in New Issue
Block a user