BerniWittmann/cape-frontend

View on GitHub
src/vuex/modules/process/getters.js

Summary

Maintainability
A
1 hr
Test Coverage
/* ============
 * Getters for the process module
 * ============
 *
 * The getters that are available on the
 * process module.
 */
import { getGraphNodes, getByTags } from '@/vuex/common/helpers'

export default {
  processGraphNodes(state) {
    return getGraphNodes(state.processes, 'process', 'process.preview', 'processID')
  },

  processesByTags(state, getters, rootState) {
    return getByTags(state.processes, rootState.tag.tags)
  }
}