Differential D19864 Diff 47441 src/applications/settings/panel/PhabricatorNotificationsSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorNotificationsSettingsPanel.php
| Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | $form = id(new AphrontFormView()) | ||||
| ->setLabel($title) | ->setLabel($title) | ||||
| ->setControlID($control_id) | ->setControlID($control_id) | ||||
| ->setName($notifications_key) | ->setName($notifications_key) | ||||
| ->setValue($notifications_value) | ->setValue($notifications_value) | ||||
| ->setOptions(PhabricatorNotificationsSetting::getOptionsMap()) | ->setOptions(PhabricatorNotificationsSetting::getOptionsMap()) | ||||
| ->setCaption( | ->setCaption( | ||||
| pht( | pht( | ||||
| 'Phabricator can send real-time notifications to your web browser '. | 'Phabricator can send real-time notifications to your web browser '. | ||||
| 'or to your desktop. Select where you\'d want to receive these '. | 'or to your desktop. Select where you want to receive these '. | ||||
| 'real-time updates.')) | 'real-time updates.')) | ||||
| ->initBehavior( | ->initBehavior( | ||||
| 'desktop-notifications-control', | 'desktop-notifications-control', | ||||
| $control_config)) | $control_config)) | ||||
| ->appendChild( | ->appendChild( | ||||
| id(new AphrontFormSubmitControl()) | id(new AphrontFormSubmitControl()) | ||||
| ->setValue(pht('Save Preference'))); | ->setValue(pht('Save Preference'))); | ||||
| Show All 25 Lines | |||||