mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-08-29 04:06:58 +00:00
fix star not being filled on when you star a repo
This commit is contained in:
@@ -167,11 +167,12 @@ func (h *UnstarRepositoryHandler) ServeHTTP(w http.ResponseWriter, r *http.Reque
|
||||
// renderStarComponent renders the star component HTML for HTMX responses
|
||||
func renderStarComponent(w http.ResponseWriter, tmpl *template.Template, handle, repository string, isStarred bool, starCount int) {
|
||||
data := map[string]any{
|
||||
"Interactive": true,
|
||||
"Handle": handle,
|
||||
"Repository": repository,
|
||||
"IsStarred": isStarred,
|
||||
"StarCount": starCount,
|
||||
"Interactive": true,
|
||||
"IsAuthenticated": true,
|
||||
"Handle": handle,
|
||||
"Repository": repository,
|
||||
"IsStarred": isStarred,
|
||||
"StarCount": starCount,
|
||||
}
|
||||
|
||||
var buf bytes.Buffer
|
||||
|
||||
Reference in New Issue
Block a user