Differential D20734 Diff 49441 src/applications/search/controller/PhabricatorApplicationSearchController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/controller/PhabricatorApplicationSearchController.php
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | private function processSearchRequest() { | ||||
} | } | ||||
$submit = id(new AphrontFormSubmitControl()) | $submit = id(new AphrontFormSubmitControl()) | ||||
->setValue(pht('Search')); | ->setValue(pht('Search')); | ||||
if ($run_query && !$named_query && $user->isLoggedIn()) { | if ($run_query && !$named_query && $user->isLoggedIn()) { | ||||
$save_button = id(new PHUIButtonView()) | $save_button = id(new PHUIButtonView()) | ||||
->setTag('a') | ->setTag('a') | ||||
->setColor(PHUIButtonView::GREY) | |||||
->setHref('/search/edit/key/'.$saved_query->getQueryKey().'/') | ->setHref('/search/edit/key/'.$saved_query->getQueryKey().'/') | ||||
->setText(pht('Save Query')) | ->setText(pht('Save Query')) | ||||
->setIcon('fa-floppy-o'); | ->setIcon('fa-bookmark'); | ||||
$submit->addButton($save_button); | $submit->addButton($save_button); | ||||
} | } | ||||
$form->appendChild($submit); | $form->appendChild($submit); | ||||
$body = array(); | $body = array(); | ||||
if ($this->getPreface()) { | if ($this->getPreface()) { | ||||
$body[] = $this->getPreface(); | $body[] = $this->getPreface(); | ||||
▲ Show 20 Lines • Show All 887 Lines • Show Last 20 Lines |