huridocs/uwazi

View on GitHub
app/react/Connections/actions/uiActions.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import * as types from './actionTypes';

export function openPanel(connectionType, sourceDocument) {
  return {
    type: types.OPEN_CONNECTION_PANEL,
    sourceDocument,
    connectionType,
  };
}

export function closePanel() {
  return {
    type: types.CLOSE_CONNECTION_PANEL,
  };
}

export function searching() {
  return {
    type: types.SEARCHING_CONNECTIONS,
  };
}