Remove flavor text for action buttons
Summary: A small but appreciable number of users find flavor on buttons confusing. Remove this flavor. This retains flavor in headers, error messages, etc., which doesn't cause confusion. Test Plan: Looked at a revision, task, paste, macro, etc. Reviewers: chad, btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D8812
This commit is contained in:
@@ -103,8 +103,6 @@ class AphrontDefaultApplicationConfiguration
|
||||
return $response;
|
||||
}
|
||||
|
||||
$is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business');
|
||||
|
||||
$user = $request->getUser();
|
||||
if (!$user) {
|
||||
// If we hit an exception very early, we won't have a user.
|
||||
@@ -175,9 +173,9 @@ class AphrontDefaultApplicationConfiguration
|
||||
->appendChild($content);
|
||||
|
||||
if ($this->getRequest()->isAjax()) {
|
||||
$dialog->addCancelButton('/', 'Close');
|
||||
$dialog->addCancelButton('/', pht('Close'));
|
||||
} else {
|
||||
$dialog->addCancelButton('/', $is_serious ? 'OK' : 'Away With Thee');
|
||||
$dialog->addCancelButton('/', pht('OK'));
|
||||
}
|
||||
|
||||
$response = new AphrontDialogResponse();
|
||||
|
||||
Reference in New Issue
Block a user