+
+ Sync
+ {stateLabel[state] || state}
+
+
+
+ Local:
+ {localHash || '-'}
+
+
+ Remote:
+ {remoteHash || '-'}
+
+
+
{lastResult}
+ {isConflict && (
+
+
+
+
+
+
+ )}
+
+ );
+};
+
+export default SyncStatusPanel;
diff --git a/src/component/fileBrowser.jsx b/src/component/fileBrowser.jsx
index 1ab72c1..e46cf80 100644
--- a/src/component/fileBrowser.jsx
+++ b/src/component/fileBrowser.jsx
@@ -53,6 +53,10 @@ const LocalFileBrowser = ({ superState, dispatcher }) => {
}, [superState.fileState]);
const handleSelectFile = (data) => {
+ if (!data.fileObj) {
+ toast.info('File handle is not available after reload. Re-open the file/directory.');
+ return;
+ }
const fileExtensions = ['exe'];
const fileExt = data.fileObj.name.split('.').pop().toLowerCase();
if (fileExtensions.includes(fileExt)) {
diff --git a/src/component/modals/ConfirmModal.jsx b/src/component/modals/ConfirmModal.jsx
index 787ab33..e564dbf 100644
--- a/src/component/modals/ConfirmModal.jsx
+++ b/src/component/modals/ConfirmModal.jsx
@@ -3,14 +3,34 @@ import ParentModal from './ParentModal';
import './confirmModal.css';
const ConfirmModal = ({
- isOpen, title, message, onConfirm, onCancel,
+ isOpen, title, message, onConfirm, onCancel, actions,
}) => (