mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-20 03:31:10 +01:00
Update Conpherence Panel saved
Summary: Use the new helper methods. Test Plan: Loaded up Conpherence Prefs, clicked save. Reviewers: epriestley, btrahan Reviewed By: btrahan CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7929
This commit is contained in:
parent
306ef5ea72
commit
240ec9a870
1 changed files with 2 additions and 12 deletions
|
@ -56,20 +56,10 @@ final class PhabricatorSettingsPanelConpherencePreferences
|
|||
id(new AphrontFormSubmitControl())
|
||||
->setValue(pht('Save Preferences')));
|
||||
|
||||
$error_view = null;
|
||||
if ($request->getBool('saved')) {
|
||||
$error_view = id(new AphrontErrorView())
|
||||
->appendChild(pht('Preferences Saved'))
|
||||
->setSeverity(AphrontErrorView::SEVERITY_NOTICE);
|
||||
}
|
||||
|
||||
$form_box = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('Conpherence Preferences'))
|
||||
->setForm($form);
|
||||
|
||||
if ($error_view) {
|
||||
$form_box->setErrorView($error_view);
|
||||
}
|
||||
->setForm($form)
|
||||
->setFormSaved($request->getBool('saved'));
|
||||
|
||||
return array(
|
||||
$form_box,
|
||||
|
|
Loading…
Reference in a new issue