1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-02-24 21:46:08 +00:00
bramw_baserow/web-frontend/modules/database/utils/action.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
441 B
JavaScript
Raw Normal View History

import { v4 as uuidv4 } from 'uuid'
export const createNewUndoRedoActionGroupId = () => {
return uuidv4()
}
export const UNDO_REDO_ACTION_GROUP_HEADER = 'ClientUndoRedoActionGroupId'
export const getUndoRedoActionRequestConfig = ({ undoRedoActionGroupId }) => {
const config = {}
if (undoRedoActionGroupId != null) {
config.headers = {
[UNDO_REDO_ACTION_GROUP_HEADER]: undoRedoActionGroupId,
}
return config
}
}