Differential D16048 Diff 38616 src/applications/settings/panel/PhabricatorDesktopNotificationsSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorDesktopNotificationsSettingsPanel.php
| Show All 21 Lines | final class PhabricatorDesktopNotificationsSettingsPanel | ||||
| } | } | ||||
| public function getPanelGroupKey() { | public function getPanelGroupKey() { | ||||
| return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY; | return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY; | ||||
| } | } | ||||
| public function processRequest(AphrontRequest $request) { | public function processRequest(AphrontRequest $request) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $preferences = $this->loadTargetPreferences(); | $preferences = $this->getPreferences(); | ||||
| $notifications_key = PhabricatorDesktopNotificationsSetting::SETTINGKEY; | $notifications_key = PhabricatorDesktopNotificationsSetting::SETTINGKEY; | ||||
| $notifications_value = $preferences->getSettingValue($notifications_key); | $notifications_value = $preferences->getSettingValue($notifications_key); | ||||
| if ($request->isFormPost()) { | if ($request->isFormPost()) { | ||||
| $this->writeSetting( | $this->writeSetting( | ||||
| $preferences, | $preferences, | ||||
| ▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines | |||||