Re-select selected communication on fetch
This makes it so the UI updates with any changes we pull down.
This commit is contained in:
parent
a8f2c87e38
commit
70d3aef8b3
3 changed files with 12 additions and 6 deletions
|
|
@ -19,11 +19,6 @@ type historyEntry struct {
|
|||
Action string `json:"action"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
}
|
||||
type reporter struct {
|
||||
HasEmail bool `json:"has_email"`
|
||||
HasPhone bool `json:"has_phone"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
type communication struct {
|
||||
Created time.Time `json:"created"`
|
||||
History []historyEntry `json:"history"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue