1
0
Fork 0
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:
Chad Little 2014-01-10 11:58:52 -08:00
parent 306ef5ea72
commit 240ec9a870

View file

@ -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,