disable GK

Summary: Adding a GK to be able to disable notifications remotely.

Reviewed By: passy

Differential Revision: D10467036

fbshipit-source-id: ee555bd73cb5c58d1113e28fe88fe605480865cf
This commit is contained in:
Daniel Büchele
2018-10-19 10:51:17 -07:00
committed by Facebook Github Bot
parent 1f84a6244c
commit f1c6ebfbd5
2 changed files with 6 additions and 1 deletions

View File

@@ -199,7 +199,7 @@ class MainSidebar extends Component<MainSidebarProps> {
backgroundColor={
process.platform === 'darwin' && windowIsFocused ? 'transparent' : ''
}>
{GK.get('flipper_notifications') && (
{!GK.get('flipper_disable_notifications') && (
<ListItem
active={selectedPlugin === 'notifications'}
onClick={() =>

View File

@@ -14,8 +14,13 @@ import {selectPlugin} from '../reducers/connections';
import {setActiveNotifications} from '../reducers/notifications';
import {textContent} from '../utils/index';
import {clientPlugins} from '../plugins/index.js';
import GK from '../fb-stubs/GK';
export default (store: Store, logger: Logger) => {
if (GK.get('flipper_disable_notifications')) {
return;
}
const knownNotifications: Set<string> = new Set();
const knownPluginStates: Map<string, Object> = new Map();