Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorDarkConsoleSetting.php
| Show All 36 Lines | final class PhabricatorDarkConsoleSetting | ||||
| protected function getSelectOptions() { | protected function getSelectOptions() { | ||||
| return array( | return array( | ||||
| self::VALUE_DARKCONSOLE_DISABLED => pht('Disable DarkConsole'), | self::VALUE_DARKCONSOLE_DISABLED => pht('Disable DarkConsole'), | ||||
| self::VALUE_DARKCONSOLE_ENABLED => pht('Enable DarkConsole'), | self::VALUE_DARKCONSOLE_ENABLED => pht('Enable DarkConsole'), | ||||
| ); | ); | ||||
| } | } | ||||
| public function expandSettingTransaction($object, $xaction) { | |||||
| // If the user has hidden the DarkConsole UI, forget their setting when | |||||
| // they enable or disable it. | |||||
| return array( | |||||
| $xaction, | |||||
| $this->newSettingTransaction( | |||||
| $object, | |||||
| PhabricatorDarkConsoleVisibleSetting::SETTINGKEY, | |||||
| 1), | |||||
| ); | |||||
| } | |||||
| } | } | ||||