1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-29 16:08:22 +01:00

When a user enables/disables DarkConsole, forget their console UI visibility setting

Summary: Ref T4103. This primarily makes sure the console gets turned on when you enable it so you aren't like "where's the console???"

Test Plan: Enabled console, saw console.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T4103

Differential Revision: https://secure.phabricator.com/D16030
This commit is contained in:
epriestley 2016-06-03 12:13:07 -07:00
parent 109917a94b
commit 804e7a6e06

View file

@ -42,5 +42,17 @@ final class PhabricatorDarkConsoleSetting
);
}
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),
);
}
}