Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
feat(frontend:sync): add createDirectory flag when electron dialog is open
johaven58a0124d40d5
diff --git a/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.ts b/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.tsindex 6f35c927..6363b77f 100644--- a/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.ts+++ b/frontend/src/app/applications/sync/components/wizard/sync-wizard-client.component.ts@@ -90,7 +90,7 @@ export class SyncWizardClientComponent {}onSelect() {- this.syncService.showOpenDialog({ properties: [ELECTRON_DIALOG.DIRECTORY], defaultPath: '' }).then((ev) => {+ this.syncService.showOpenDialog({ properties: [ELECTRON_DIALOG.DIRECTORY, ELECTRON_DIALOG.CREATE_DIRECTORY], defaultPath: '' }).then((ev) => {if (!ev.canceled) {this.syncService.wizard.localPath = {name: ev.filePaths[0].split('\\').pop().split('/').pop(),diff --git a/frontend/src/app/electron/constants/dialogs.ts b/frontend/src/app/electron/constants/dialogs.tsindex 2f15e9f9..ec8aa6eb 100644--- a/frontend/src/app/electron/constants/dialogs.ts+++ b/frontend/src/app/electron/constants/dialogs.ts@@ -6,5 +6,6 @@export enum ELECTRON_DIALOG {FILE = 'openFile',- DIRECTORY = 'openDirectory'+ DIRECTORY = 'openDirectory',+ CREATE_DIRECTORY = 'createDirectory'}