Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
fix(ui): make workspace page title use Name, not ID (#581)
Browse files Browse the repository at this point in the history
Closes #579

Use the `.Name` of the workspace as the page `<title>` instead of the
`ID`, for friendly viewing.

The `.ID` is still available in both the URL and on the page of the
workspace
  • Loading branch information
tomwardill-payoneer committed Aug 31, 2023
1 parent c63722e commit 8268643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/workspace/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (h *webHandlers) getWorkspace(w http.ResponseWriter, r *http.Request) {
UnassignedTags []string
TagsDropdown html.DropdownUI
}{
WorkspacePage: NewPage(r, ws.ID, ws),
WorkspacePage: NewPage(r, ws.Name, ws),
LockButton: lockButtonHelper(ws, policy, user),
VCSProvider: provider,
CanApply: user.CanAccessWorkspace(rbac.ApplyRunAction, policy),
Expand Down

0 comments on commit 8268643

Please sign in to comment.