- objectsAreDifferent(modelStore.userData, modelStore.originalUserData));
const canSave = computed((): boolean => {
+ const canSaveWithServer = globalStore.session.loggedIn && canInteractWithServer.value;
return !saving.value
- && globalStore.session.loggedIn
- && (canInteractWithServer.value || canInteractWithSyncedFolder.value)
+ && (canSaveWithServer || canInteractWithSyncedFolder.value)
// && !userDataHasError.value
&& userDataHasChanged.value
&& structureIsPristine.value;
diff --git a/src/interfaces.ts b/src/interfaces.ts
index cd08245..afd4f9a 100644
--- a/src/interfaces.ts
+++ b/src/interfaces.ts
@@ -61,6 +61,7 @@ export interface IError {
export interface IFile {
path: string | null,
+ origin?: 'local' | 'remote',
blob?: string | undefined,
meta: {
type?: string,