refactor(thread-page-design-warning): migrate to the new DI architecture
Bug: twpowertools:176
Change-Id: I0f349e4dfe6fb4c13ff4b087f82529b1bdf66728
diff --git a/src/entryPoints/communityConsole/contentScripts/main.ts b/src/entryPoints/communityConsole/contentScripts/main.ts
index 47ec269..35088ea 100644
--- a/src/entryPoints/communityConsole/contentScripts/main.ts
+++ b/src/entryPoints/communityConsole/contentScripts/main.ts
@@ -6,6 +6,7 @@
ExtraInfoDependency,
OptionsProviderDependency,
StartupDataStorageDependency,
+ ThreadPageDesignWarningDependency,
WorkflowsImportDependency,
} from '../../../common/architecture/dependenciesProvider/DependenciesProvider';
import AutoRefreshThreadListHideHandler from '../../../features/autoRefresh/presentation/nodeWatcherHandlers/threadListHide.handler';
@@ -40,6 +41,7 @@
import CCExtraInfoStylesScript from '../../../features/extraInfo/presentation/scripts/ccExtraInfoStyles.script';
import InjectLitComponentsScript from '../../../presentation/standaloneScripts/litComponents/injectLitComponents.script';
import ApplyStartupDataModificationsOnMainScript from '../../../presentation/standaloneScripts/startupDataStorage/applyStartupDataModificationsOnMain.script';
+import ThreadPageDesignWarningInjectHandler from '../../../features/threadPageDesignWarning/presentation/nodeWatcherHandlers/inject.handler';
const scriptRunner = createScriptRunner();
scriptRunner.run();
@@ -54,6 +56,9 @@
const startupDataStorage = dependenciesProvider.getDependency(
StartupDataStorageDependency,
);
+ const threadPageDesignWarning = dependenciesProvider.getDependency(
+ ThreadPageDesignWarningDependency,
+ );
const workflowsImport = dependenciesProvider.getDependency(
WorkflowsImportDependency,
);
@@ -128,6 +133,10 @@
new CCInfiniteScrollLoadMoreBtnHandler(ccInfiniteScroll),
],
[
+ 'threadPageDesignWarningInject',
+ new ThreadPageDesignWarningInjectHandler(threadPageDesignWarning),
+ ],
+ [
'workflowsImportCRTags',
new WorkflowsImportCRTagsHandler(workflowsImport),
],