fix: ui uses "Dashboard" instead of "Spaces"
This commit is contained in:
parent
d6b9eb9c59
commit
fbd8d6e935
4 changed files with 13 additions and 15 deletions
|
|
@ -27,7 +27,7 @@ templ App(title string) {
|
|||
@sidebar.MenuItem() {
|
||||
@sidebar.MenuButton(sidebar.MenuButtonProps{
|
||||
Size: sidebar.MenuButtonSizeLg,
|
||||
Href: "/app/dashboard",
|
||||
Href: "/app/spaces",
|
||||
}) {
|
||||
@icon.LayoutDashboard()
|
||||
<div class="flex flex-col">
|
||||
|
|
@ -45,12 +45,12 @@ templ App(title string) {
|
|||
@sidebar.Menu() {
|
||||
@sidebar.MenuItem() {
|
||||
@sidebar.MenuButton(sidebar.MenuButtonProps{
|
||||
Href: "/app/dashboard",
|
||||
IsActive: ctxkeys.URLPath(ctx) == "/app/dashboard",
|
||||
Tooltip: "Dashboard",
|
||||
Href: "/app/spaces",
|
||||
IsActive: ctxkeys.URLPath(ctx) == "/app/spaces",
|
||||
Tooltip: "Spaces",
|
||||
}) {
|
||||
@icon.House(icon.Props{Class: "size-4"})
|
||||
<span>Dashboard</span>
|
||||
<span>Spaces</span>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ templ Space(title string, space *model.Space) {
|
|||
@icon.LayoutDashboard()
|
||||
<div class="flex flex-col">
|
||||
<span class="text-sm font-bold">{ cfg.AppName }</span>
|
||||
<span class="text-xs text-muted-foreground">Back to Dashboard</span>
|
||||
<span class="text-xs text-muted-foreground">Back to Spaces</span>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue