diff --git a/.gitignore b/.gitignore index 7d3db1bd..00b78bb8 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,7 @@ public/ *.compiled.* settings.json *.shot - +*.ccg # Folder config file # ###################### diff --git a/client/components/RoutingStorage.tsx b/client/components/RoutingStorage.tsx index 8e7da457..b4c7c2e8 100644 --- a/client/components/RoutingStorage.tsx +++ b/client/components/RoutingStorage.tsx @@ -8,7 +8,8 @@ import { SOCKET_GET_SNAPSHOT_LIST, SOCKET_LOAD_SNAPSHOT, SOCKET_SAVE_SNAPSHOT, - SOCKET_GET_CCG_LIST + SOCKET_GET_CCG_LIST, + SOCKET_SAVE_CCG_FILE } from '../../server/constants/SOCKET_IO_DISPATCHERS'; interface IStorageProps { @@ -59,8 +60,8 @@ class Storage extends React.PureComponent { loadCcgFile(event: any) { if (window.confirm('Are you sure you will load a CasparCG setup?')) { - console.log('Loading files') - window.socketIoClient.emit(SOCKET_LOAD_SNAPSHOT, event.target.textContent) + console.log('Setting default CasparCG file') + window.socketIoClient.emit(SOCKET_SAVE_CCG_FILE, event.target.textContent) } this.handleClose() } @@ -69,12 +70,11 @@ class Storage extends React.PureComponent { ListSnapshotFiles() { window.socketIoClient.emit(SOCKET_GET_SNAPSHOT_LIST) const listItems = window.snapshotFileList.map((file: string, index: number) => { - return ( -
  • - {file} -
  • ) - } - ); + return ( +
  • + {file} +
  • ) + }); return (