1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Restore the "Download from Git LFS" UI button to Diffusion

Summary: Depends on D18827. Ref T7789. See PHI204. See PHI131. This button got accidentally removed in Diffusion refactoring (`$data` is no longer used).

Test Plan: {F5321459}

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T7789

Differential Revision: https://secure.phabricator.com/D18828
This commit is contained in:
epriestley 2017-12-13 06:02:09 -08:00
parent 8e416474c0
commit 5295840a4c

View file

@ -916,7 +916,8 @@ final class DiffusionBrowseController extends DiffusionController {
->setTag('a')
->setText($text)
->setHref($href)
->setIcon($icon);
->setIcon($icon)
->setColor(PHUIButtonView::GREY);
}
private function buildDisplayRows(
@ -1924,7 +1925,7 @@ final class DiffusionBrowseController extends DiffusionController {
try {
$file = $this->loadGitLFSFile($ref);
$data = $this->renderGitLFSButton();
$this->corpusButtons[] = $this->renderGitLFSButton();
} catch (Exception $ex) {
$severity = PHUIInfoView::SEVERITY_ERROR;
$messages[] = pht('The data for this file could not be loaded.');