From 91c69428ed0dc2dd26b00c6dd5a6684f25515a34 Mon Sep 17 00:00:00 2001 From: Abin Mn Date: Tue, 26 Oct 2021 21:18:20 +0530 Subject: Cleanup/remove feature toggle for todo, workspace, service proxy (#2134) * Remove DEFAULT_FEATURES_CONFIG from config * Remove static controller Co-authored-by: Madhuri B --- src/features/todos/index.ts | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'src/features/todos/index.ts') diff --git a/src/features/todos/index.ts b/src/features/todos/index.ts index 3665812e6..2fa8c3130 100644 --- a/src/features/todos/index.ts +++ b/src/features/todos/index.ts @@ -1,29 +1,8 @@ -import { reaction } from 'mobx'; import TodoStore from './store'; -const debug = require('debug')('Ferdi:feature:todos'); - export const todosStore = new TodoStore(); -export default function initTodos( - stores: { todos?: any; features?: any }, - actions: any, -) { +export default function initTodos(stores: { todos?: any }, actions: any) { stores.todos = todosStore; - const { features } = stores; - - // Toggle todos feature - reaction( - () => features.features.isTodosEnabled, - isEnabled => { - if (isEnabled) { - debug('Initializing `todos` feature'); - todosStore.start(stores, actions); - } else if (todosStore.isFeatureActive) { - debug('Disabling `todos` feature'); - todosStore.stop(); - } - }, - { fireImmediately: true }, - ); + todosStore.start(stores, actions); } -- cgit v1.2.3-70-g09d2