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:
committed by
Facebook Github Bot
parent
1f84a6244c
commit
f1c6ebfbd5
@@ -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={() =>
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user