ES6 Plato on Github
Report Home
Summary Display
actions/logbook.js
Maintainability
81.47
Lines of code
15
Difficulty
6.30
Estimated Errors
0.02
Function weight
By Complexity
By SLOC
import { SET_LOGBOOK_CONTEXT } from '../constants/ActionTypes'; /** * Set the logbook context ie the context in which the logbook is used. Here the context corresponds to : * - 'proposal': indicating that the logbook is associated to a proposal * - 'dataCollection': indicating that the logbook is associated to a dataCollection * - 'dataset': indicating that the logbook is associated to a dataset * @param {*} context the context object for which the logbook is run. */ export function setLogbookContextAction(context) { return { type: SET_LOGBOOK_CONTEXT, context: context, }; }