diff --git a/ProjectClock/AccountViewController.swift b/ProjectClock/AccountViewController.swift index 854864d..d39ece2 100644 --- a/ProjectClock/AccountViewController.swift +++ b/ProjectClock/AccountViewController.swift @@ -255,6 +255,18 @@ class FamilyVC: UIViewController } } + /** + Called when the user clicks the refresh button + */ + @IBAction func btnRefresh(_ sender: Any) + { + sendReq(APIs.familyGet, title: "Updating family...") + { + $0.localSave() + self.table.reloadData() + } + } + /** Called when the user clicks the change pin button */ diff --git a/ProjectClock/Base.lproj/Main.storyboard b/ProjectClock/Base.lproj/Main.storyboard index 44528c0..01b2e90 100644 --- a/ProjectClock/Base.lproj/Main.storyboard +++ b/ProjectClock/Base.lproj/Main.storyboard @@ -1111,7 +1111,7 @@ - +