diff --git a/back-end/main.go b/back-end/main.go index fd45a6a..8a13299 100644 --- a/back-end/main.go +++ b/back-end/main.go @@ -21,8 +21,9 @@ type Entry struct { } type Project struct { - Id string - Name string + Id string + Identifier string + Name string } func main() { @@ -75,7 +76,7 @@ func main() { projects_map = make(map[string]string) for _, e := range projects { - projects_map[e.Id] = e.Name + projects_map[e.Id] = fmt.Sprintf("(%s) %s", e.Identifier, e.Name) } var hours map[string]float64 diff --git a/front-end/src/components/Controls.vue b/front-end/src/components/Controls.vue index 6ff8679..347cd6e 100644 --- a/front-end/src/components/Controls.vue +++ b/front-end/src/components/Controls.vue @@ -58,18 +58,15 @@ async function showModalTotalHours() { - + - {{ project }} - {{ modalTotalHours.hours[project] }} - - - + {{ project }} + {{ modalTotalHours.hours[project] }} - Total hours - {{ modalTotalHours.total }} + Total hours + {{ modalTotalHours.total }}