diff --git a/react/actions/index.js b/react/actions/index.js index e20a077d..161c568d 100644 --- a/react/actions/index.js +++ b/react/actions/index.js @@ -1,12 +1,13 @@ // export action types export const FILE_SELECTED = 'FILE_SELECTED'; export const FILE_CLEAR = 'FILE_CLEAR'; +export const METADATA_UPDATE = 'TITLE_UPDATE'; // export action creators export function selectFile (file) { return { - type : FILE_SELECTED, - payload: file, + type: FILE_SELECTED, + file: file, }; }; @@ -15,3 +16,11 @@ export function clearFile () { type: FILE_CLEAR, }; }; + +export function updateMetadata (name, value) { + return { + type: METADATA_UPDATE, + name, + value, + }; +}; diff --git a/react/components/PublishForm.jsx b/react/components/PublishForm.jsx index f7529c2e..05d18e04 100644 --- a/react/components/PublishForm.jsx +++ b/react/components/PublishForm.jsx @@ -28,10 +28,7 @@ class PublishForm extends React.Component {