Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SWE-12 Remove unused “Home” button
- we now simply display “Done” as the title to dismiss the payment result screen which is presented modally
  • Loading branch information
ahm11003 committed Apr 5, 2019
1 parent fff4ae0 commit ed55a49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Expand Up @@ -243,14 +243,9 @@
<label width="1" alignment="center" text="Payment Result:" textAlignment="center" id="gg1-Wq-NeI"/>
<separator width="1" alignment="center" id="Y1o-3Q-hjG"/>
<label width="1" alignment="center" text="Confirmation Number:" textAlignment="center" minimumScaleFactor="0.69999999999999996" id="qAX-bM-U5t"/>
<label width="1" alignment="center" text="Label" textAlignment="center" id="cF3-r2-BMf"/>
<label width="1" alignment="center" text="Payment ID:" textAlignment="center" id="7Cr-Kh-rJ2"/>
<label width="1" alignment="center" text="Label" textAlignment="center" id="wSp-wZ-Ksf"/>
<button width="1" height="30" alignment="left" title="Home" id="HbC-l6-p2S">
<connections>
<action selector="didTapHome" destination="mpK-7H-pjK" id="nZ1-FD-iEx"/>
</connections>
</button>
<label width="1" alignment="center" text="Label" textAlignment="center" minimumScaleFactor="0.5" id="cF3-r2-BMf"/>
<label width="1" alignment="center" verticalAlignment="center" text="Payment ID:" textAlignment="center" id="7Cr-Kh-rJ2"/>
<label width="1" alignment="center" verticalAlignment="center" text="Label" textAlignment="center" id="wSp-wZ-Ksf"/>
</items>
<connections>
<outlet property="confirmationNumberLabel" destination="cF3-r2-BMf" id="FBR-K8-kdQ"/>
Expand Down
Expand Up @@ -21,13 +21,10 @@ class PaymentResultInterfaceController: WKInterfaceController {
let paymentID = data["payment_id"] {
confirmationNumberLabel.setText(paymentConfirmation)
paymentIDLabel.setText(paymentID)
setTitle("Done")
}
}

@IBAction func didTapHome() {
popToRootController()
}

override func willActivate() {
// This method is called when watch view controller is about to be visible to user
super.willActivate()
Expand Down

0 comments on commit ed55a49

Please sign in to comment.