Skip to content

Commit

Permalink
one save button; force common git flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Lukasczyk committed Dec 9, 2024
1 parent 0f6d6d5 commit f55367b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
16 changes: 13 additions & 3 deletions packages/renderer/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -251,9 +261,9 @@ const test = async ()=>{
<q-separator />

<!--<ToolbarButton text='Refresh ARC' icon='refresh' requiresARC @clicked='refreshLocalArc()'></ToolbarButton>-->
<ToolbarButton text='Save ARC' icon='save' requiresARC @clicked='saveLocalArc()'>
<a_tooltip> Save the ARC locally</a_tooltip>
</ToolbarButton>
<!--<ToolbarButton text='Save ARC' icon='save' requiresARC @clicked='saveLocalArc()'>-->
<!-- <a_tooltip> Save the ARC locally</a_tooltip>-->
<!--</ToolbarButton>-->
<ToolbarButton text='Explorer' icon='folder_open' requiresARC @clicked='ArcControlService.openArcInExplorer()'>
<a_tooltip>Open the ARC in your Explorer or Finder</a_tooltip>
</ToolbarButton>
Expand Down
3 changes: 3 additions & 0 deletions packages/renderer/src/views/SwateView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f55367b

Please sign in to comment.