Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions web/src/components/FileBrowser/FileUploadInstructions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div>> cd {{ dandisetIdentifier }}</div>
<div>> dandi organize &lt;source_folder&gt; -f dry</div>
<div>> dandi organize &lt;source_folder&gt;</div>
<div>> dandi upload</div>
<div>> dandi upload -i {{ instanceName }}</div>
</v-sheet>
</div>
</div>
Expand All @@ -48,13 +48,21 @@
</template>

<script setup lang="ts">
import { computed } from 'vue';
import { computed, onMounted, ref } from 'vue';
import { useDandisetStore } from '@/stores/dandiset';
import { dandiDocumentationUrl } from '@/utils/constants';
import { dandiRest } from '@/rest';

const store = useDandisetStore();
const dandisetIdentifier = computed(() => store.dandiset?.dandiset.identifier);

const instanceName = ref<string>('');

onMounted(async () => {
const info = await dandiRest.info();
instanceName.value = info.instance_config.instance_name.toLowerCase();
});

if (dandisetIdentifier.value === undefined) {
throw new Error('store.dandiset must be defined');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</template>

<script setup lang="ts">
import { computed, defineProps, ref} from 'vue';
import { computed, ref} from 'vue';
import type { PropType } from 'vue';

import ValidationErrorDialog from '@/components/DLP/ValidationErrorDialog.vue';
Expand Down