From f55367b06d232c29a407887c0bfaed70cd96dbbb Mon Sep 17 00:00:00 2001 From: Jonas Lukasczyk Date: Mon, 9 Dec 2024 10:51:58 +0100 Subject: [PATCH] one save button; force common git flags --- package.json | 2 +- packages/renderer/src/App.vue | 16 +++++++++++++--- packages/renderer/src/views/SwateView.vue | 3 +++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 71a86f2..b808b36 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ARCitect", - "version": "v0.0.50", + "version": "v0.0.51", "author": "nfdi4plants.org", "description": "Tool to edit Annotated Research Contexts (ARCs).", "private": true, diff --git a/packages/renderer/src/App.vue b/packages/renderer/src/App.vue index fffbd65..ac50f52 100644 --- a/packages/renderer/src/App.vue +++ b/packages/renderer/src/App.vue @@ -185,6 +185,16 @@ onMounted(async () => { } } + // add common git flags + { + await window.ipc.invoke('GitService.run', { + args: [`config`,`--global`,`lfs.activitytimeout`, `0`] + }); + await window.ipc.invoke('GitService.run', { + args: [`config`,`--global`,`core.longpaths`,`true`] + }); + } + // check ARCitect version const version_ = iProps.version.slice(1).split('.').map(x=>parseFloat(x)); const versions = await window.ipc.invoke('InternetService.getArcitectVersions'); @@ -251,9 +261,9 @@ const test = async ()=>{ - - Save the ARC locally - + + + Open the ARC in your Explorer or Finder diff --git a/packages/renderer/src/views/SwateView.vue b/packages/renderer/src/views/SwateView.vue index e51158c..4287b12 100644 --- a/packages/renderer/src/views/SwateView.vue +++ b/packages/renderer/src/views/SwateView.vue @@ -105,16 +105,19 @@ const SwateAPI: SwateAPI = { InvestigationToARCitect: (investigationJsonString: string) => { let investigation = JsonController.Investigation.fromJsonString(investigationJsonString); ArcControlService.props.arc.ISA = investigation; + ArcControlService.saveARC({force: true}); }, AssayToARCitect: (assayJsonString: string) => { let assay = JsonController.Assay.fromJsonString(assayJsonString); ArcControlService.props.arc.ISA.SetAssay(assay.Identifier, assay); + ArcControlService.saveARC({force: true}); }, StudyToARCitect: (studyJsonString: string) => { /// ignore assays, I am actually not sure why this must be create, but it will be empty. Must talk to Lukas Weil about this. /// ~Kevin F. 12.01.2024 let study = JsonController.Study.fromJsonString(studyJsonString); ArcControlService.props.arc.ISA.SetStudy(study.Identifier, study); + ArcControlService.saveARC({force: true}); }, Error: (e) => { console.log('[Swate-Interop-Error]', e)