Changeset View
Changeset View
Standalone View
Standalone View
src/applications/console/controller/DarkConsoleController.php
Show All 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$response = id(new AphrontAjaxResponse())->setDisableConsole(true); | $response = id(new AphrontAjaxResponse())->setDisableConsole(true); | ||||
if (!$viewer->isLoggedIn()) { | if (!$viewer->isLoggedIn()) { | ||||
return $response; | return $response; | ||||
} | } | ||||
$visible = $request->getStr('visible'); | $visible = $request->getStr('visible'); | ||||
if (strlen($visible)) { | if (phutil_nonempty_string($visible)) { | ||||
$this->writeDarkConsoleSetting( | $this->writeDarkConsoleSetting( | ||||
PhabricatorDarkConsoleVisibleSetting::SETTINGKEY, | PhabricatorDarkConsoleVisibleSetting::SETTINGKEY, | ||||
(int)$visible); | (int)$visible); | ||||
return $response; | return $response; | ||||
} | } | ||||
$tab = $request->getStr('tab'); | $tab = $request->getStr('tab'); | ||||
if (strlen($tab)) { | if (strlen($tab)) { | ||||
Show All 38 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0