mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-21 22:32:41 +01:00
Clean up two straggling UI issues in Phortune
Ref T13401. The checkout UI didn't get fully updated to the new View objects, and account handles are still manually building a URI that goes to the wrong place.
This commit is contained in:
parent
533a5535b6
commit
b2b17485b9
2 changed files with 6 additions and 11 deletions
|
@ -101,13 +101,9 @@ final class PhortuneCartCheckoutController
|
|||
}
|
||||
}
|
||||
|
||||
$cart_table = $this->buildCartContentTable($cart);
|
||||
|
||||
$cart_box = id(new PHUIObjectBoxView())
|
||||
->setFormErrors($errors)
|
||||
->setHeaderText(pht('Cart Contents'))
|
||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||
->setTable($cart_table);
|
||||
$cart_box = id(new PhortuneOrderItemsView())
|
||||
->setViewer($viewer)
|
||||
->setOrder($cart);
|
||||
|
||||
$title = $cart->getName();
|
||||
|
||||
|
|
|
@ -32,10 +32,9 @@ final class PhortuneAccountPHIDType extends PhabricatorPHIDType {
|
|||
foreach ($handles as $phid => $handle) {
|
||||
$account = $objects[$phid];
|
||||
|
||||
$id = $account->getID();
|
||||
|
||||
$handle->setName($account->getName());
|
||||
$handle->setURI("/phortune/{$id}/");
|
||||
$handle
|
||||
->setName($account->getName())
|
||||
->setURI($account->getURI());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue