1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 05:20:56 +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:
epriestley 2019-08-31 09:36:23 -07:00
parent 533a5535b6
commit b2b17485b9
2 changed files with 6 additions and 11 deletions

View file

@ -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();

View file

@ -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());
}
}