2016-08-18 14:22:12 +02:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* LanguageProvider actions
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {
|
2016-09-06 16:59:56 +02:00
|
|
|
LOAD_PLUGIN,
|
2017-03-18 17:34:00 +01:00
|
|
|
UPDATE_PLUGIN,
|
|
|
|
PLUGIN_LOADED,
|
2016-08-18 14:22:12 +02:00
|
|
|
} from './constants';
|
|
|
|
|
2016-09-06 16:59:56 +02:00
|
|
|
export function loadPlugin(newPlugin) {
|
2016-08-18 14:22:12 +02:00
|
|
|
return {
|
2016-09-06 16:59:56 +02:00
|
|
|
type: LOAD_PLUGIN,
|
|
|
|
plugin: newPlugin,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-03-18 17:34:00 +01:00
|
|
|
export function updatePlugin(pluginId, updatedKey, updatedValue) {
|
|
|
|
return {
|
|
|
|
type: UPDATE_PLUGIN,
|
|
|
|
pluginId,
|
|
|
|
updatedKey,
|
|
|
|
updatedValue,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2016-09-06 16:59:56 +02:00
|
|
|
export function pluginLoaded(newPlugin) {
|
|
|
|
return {
|
|
|
|
type: PLUGIN_LOADED,
|
2016-08-18 14:22:12 +02:00
|
|
|
plugin: newPlugin,
|
|
|
|
};
|
|
|
|
}
|