Differential D21789 Diff 51945 src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
Show First 20 Lines • Show All 392 Lines • ▼ Show 20 Lines | private function returnPrimaryAddressResponse( | ||||
$address = $email->getAddress(); | $address = $email->getAddress(); | ||||
$dialog = id(new AphrontDialogView()) | $dialog = id(new AphrontDialogView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->addHiddenInput('primary', $email_id) | ->addHiddenInput('primary', $email_id) | ||||
->setTitle(pht('Change primary email address?')) | ->setTitle(pht('Change primary email address?')) | ||||
->appendParagraph( | ->appendParagraph( | ||||
pht( | pht( | ||||
'If you change your primary address, Phabricator will send all '. | 'If you change your primary address, %s will send all '. | ||||
'email to %s.', | 'email to %s.', | ||||
PlatformSymbols::getPlatformServerName(), | |||||
$address)) | $address)) | ||||
->appendParagraph( | ->appendParagraph( | ||||
pht( | pht( | ||||
'Note: Changing your primary email address will invalidate any '. | 'Note: Changing your primary email address will invalidate any '. | ||||
'outstanding password reset links.')) | 'outstanding password reset links.')) | ||||
->addSubmitButton(pht('Change Primary Address')) | ->addSubmitButton(pht('Change Primary Address')) | ||||
->addCancelButton($uri); | ->addCancelButton($uri); | ||||
return id(new AphrontDialogResponse())->setDialog($dialog); | return id(new AphrontDialogResponse())->setDialog($dialog); | ||||
} | } | ||||
} | } |