fix: update Open button URL from /prompts to /trackers
This commit is contained in:
parent
17bfdf8f83
commit
0e5c60dab6
|
|
@ -121,7 +121,7 @@ func BuildDossierSections(targetID, targetHex string, target *lib.Dossier, p *li
|
||||||
|
|
||||||
switch cfg.ID {
|
switch cfg.ID {
|
||||||
case "checkin":
|
case "checkin":
|
||||||
section.ActionURL = fmt.Sprintf("/dossier/%s/prompts", targetHex)
|
section.ActionURL = fmt.Sprintf("/dossier/%s/trackers", targetHex)
|
||||||
section.ActionLabel = T("open")
|
section.ActionLabel = T("open")
|
||||||
|
|
||||||
// Count trackable categories
|
// Count trackable categories
|
||||||
|
|
@ -149,7 +149,7 @@ func BuildDossierSections(targetID, targetHex string, target *lib.Dossier, p *li
|
||||||
// Show build profile prompt
|
// Show build profile prompt
|
||||||
section.ShowBuildTracker = true
|
section.ShowBuildTracker = true
|
||||||
section.Summary = T("checkin_build_profile")
|
section.Summary = T("checkin_build_profile")
|
||||||
promptsURL := fmt.Sprintf("/dossier/%s/prompts", targetHex)
|
promptsURL := fmt.Sprintf("/dossier/%s/trackers", targetHex)
|
||||||
section.TrackerButtons = []TrackerButton{
|
section.TrackerButtons = []TrackerButton{
|
||||||
{Label: T("btn_vitals"), URL: promptsURL + "?add=vital"},
|
{Label: T("btn_vitals"), URL: promptsURL + "?add=vital"},
|
||||||
{Label: T("btn_medications"), URL: promptsURL + "?add=medication"},
|
{Label: T("btn_medications"), URL: promptsURL + "?add=medication"},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue