mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 06:42:42 +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 PhortuneOrderItemsView())
|
||||||
|
->setViewer($viewer)
|
||||||
$cart_box = id(new PHUIObjectBoxView())
|
->setOrder($cart);
|
||||||
->setFormErrors($errors)
|
|
||||||
->setHeaderText(pht('Cart Contents'))
|
|
||||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
|
||||||
->setTable($cart_table);
|
|
||||||
|
|
||||||
$title = $cart->getName();
|
$title = $cart->getName();
|
||||||
|
|
||||||
|
|
|
@ -32,10 +32,9 @@ final class PhortuneAccountPHIDType extends PhabricatorPHIDType {
|
||||||
foreach ($handles as $phid => $handle) {
|
foreach ($handles as $phid => $handle) {
|
||||||
$account = $objects[$phid];
|
$account = $objects[$phid];
|
||||||
|
|
||||||
$id = $account->getID();
|
$handle
|
||||||
|
->setName($account->getName())
|
||||||
$handle->setName($account->getName());
|
->setURI($account->getURI());
|
||||||
$handle->setURI("/phortune/{$id}/");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue