diff --git a/packages/renderer/src/AppProperties.ts b/packages/renderer/src/AppProperties.ts index 54acc2f..373af58 100644 --- a/packages/renderer/src/AppProperties.ts +++ b/packages/renderer/src/AppProperties.ts @@ -29,7 +29,8 @@ const AppProperties: { : [ 'git.nfdi4plants.org', 'gitlab.nfdi4plants.de', - 'gitlab.plantmicrobe.de' + 'gitlab.plantmicrobe.de', + 'datahub.rz.rptu.de', ], datahub_hosts_msgs: {}, diff --git a/packages/renderer/src/views/DataHubView.vue b/packages/renderer/src/views/DataHubView.vue index 0ef6891..69ae9aa 100644 --- a/packages/renderer/src/views/DataHubView.vue +++ b/packages/renderer/src/views/DataHubView.vue @@ -22,6 +22,7 @@ const props = reactive({ search_text: '', download_lfs: false, host: 'git.nfdi4plants.org', + host_manually_set: false, error: '' }); @@ -83,7 +84,10 @@ const importArc = async url =>{ const init = async () => { props.error = ''; - props.list = []; + props.list = null; + + if(!props.host_manually_set && AppProperties.user) + props.host = AppProperties.user.host; const list = await window.ipc.invoke( 'DataHubService.getArcs', @@ -120,6 +124,9 @@ onMounted(init); watch(()=>AppProperties.user, init); watch(()=>props.host, init); +const host_manually_set = ()=>{ + props.host_manually_set=true; +};