How to use the @talend/react-cmf.actions.settingsActions function in @talend/react-cmf

To help you get started, we’ve selected a few @talend/react-cmf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Talend / data-prep / dataprep-webapp / src / app / configure.cmf.js View on Github external
registerActionCreator('headerbar:search:start', actions.search.start);
		registerActionCreator('headerbar:search:select', actions.search.select);
		registerActionCreator('headerbar:search:reset', actions.search.reset);
		registerActionCreator('dataset:view', actions.dataset.open);

		const additionalActionCreators = additionalConfiguration.actionCreators;
		if (additionalActionCreators) {
			Object.keys(additionalActionCreators).map(k =>
				registerActionCreator(k, additionalActionCreators[k]),
			);
		}
		/**
		 * Fetch the CMF settings and configure the CMF app
		 */
		store.dispatch(
			cmfActions.settingsActions.fetchSettings(`/settings.${settingsService.getLanguage()}.json`),
		);

		reduxLocalStorage.saveOnReload({
			engine,
			store,
		});

		/**
		 * Register i18next locales per namespace
		 */
		registerLocales(locales);
		const additionalLocales = additionalConfiguration.locales;
		if (additionalLocales) {
			registerLocales(additionalLocales);
		}
github Talend / data-prep / dataprep-webapp / src / app / configure.cmf.js View on Github external
registerActionCreator('headerbar:search:start', actions.search.start);
	registerActionCreator('headerbar:search:select', actions.search.select);
	registerActionCreator('headerbar:search:reset', actions.search.reset);
	registerActionCreator('dataset:view', actions.dataset.open);

	const additionalActionCreators = additionalConfiguration.actionCreators;
	if (additionalActionCreators) {
		Object.keys(additionalActionCreators).map(k =>
			registerActionCreator(k, additionalActionCreators[k]),
		);
	}
	/**
	 * Fetch the CMF settings and configure the CMF app
	 */
	store.dispatch(
		cmfActions.settingsActions.fetchSettings(`/settings.${settingsService.getLanguage()}.json`),
	);

	api.localStorage.getStoreCallback(localStorageKey, KEEP)(store);

	/**
	 * Register i18next locales per namespace
	 */
	registerLocales(locales);
	const additionalLocales = additionalConfiguration.locales;
	if (additionalLocales) {
		registerLocales(additionalLocales);
	}

	const additionalCallback = additionalConfiguration.callback;
	if (additionalCallback) {
		additionalCallback();