[+] Add refresh family button

This commit is contained in:
Hykilpikonna
2021-01-25 16:38:01 -05:00
parent dcd94fc25c
commit f1b8b794d3
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -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
*/
+1 -1
View File
@@ -1111,7 +1111,7 @@
<rect key="frame" x="0.0" y="0.0" width="374" height="30"/>
<state key="normal" title="Refresh"/>
<connections>
<action selector="btnChangePin:" destination="4ss-Ye-Da4" eventType="touchUpInside" id="iZl-b9-AhU"/>
<action selector="btnRefresh:" destination="4ss-Ye-Da4" eventType="touchUpInside" id="t7G-Ur-JIH"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="R2H-k5-27v">