Skip to content

Commit

Permalink
Fix #79, variagble name collision between update messages and error m…
Browse files Browse the repository at this point in the history
…essage on change password page
  • Loading branch information
NHAS committed Nov 30, 2023
1 parent 3de5972 commit 276b743
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ui/check_updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type githubResponse struct {
type Update struct {
New bool
UpdateVersion string
Message []string
UpdateMessage []string
Url string
Released string
}
Expand Down Expand Up @@ -51,7 +51,7 @@ func getUpdate() Update {

mostRecentUpdate = &Update{
UpdateVersion: gr.TagName,
Message: strings.Split(gr.Body, "\r\n"),
UpdateMessage: strings.Split(gr.Body, "\r\n"),
Url: gr.Url,
Released: gr.Published,
}
Expand Down
2 changes: 1 addition & 1 deletion ui/templates/menus.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h6 class="collapse-header">Tools:</h6>
<div>
<div class="small text-gray-500">{{.Released}}</div>
<span class="font-weight-bold">{{.UpdateVersion}}</span>
{{range $val := .Message}}
{{range $val := .UpdateMessage}}
<p>{{$val}}</p>
{{end}}
</div>
Expand Down

0 comments on commit 276b743

Please sign in to comment.