Skip to content

Commit

Permalink
fix: Pass authors on object and project creation
Browse files Browse the repository at this point in the history
  • Loading branch information
das-Abroxas committed Apr 18, 2024
1 parent 2aa95c4 commit 2ba55f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
2 changes: 1 addition & 1 deletion composables/api_wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export async function createObject(
hashes: [],
metadataLicenseTag: metaLicense,
dataLicenseTag: dataLicense,
authors: []
authors: authors
} as v2CreateObjectRequest

return $fetch<v2Object>('/api/object', {
Expand Down
19 changes: 0 additions & 19 deletions pages/objects/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,25 +206,6 @@ const router = useRouter()
</div>
<!-- End Description / Authors Row -->




<!-- Description / Authors Row -->
<!--
<div class="flex items-center container mx-auto mb-6">
<div class="flex flex-col grow p-2 bg-white/[.5] border border-gray-400 text-gray-600 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400">
<div class="flex flex-row justify-start items-center p-4 font-bold text-2xl">
<IconFileInfo class="flex-shrink-0 size-6 me-2 text-gray-600/[.75]"/>
Description
</div>
<div class="flex grow p-4 text-gray-700 text-xl border-t border-gray-300 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400">
{{ objectInfo?.description }}
</div>
</div>
</div>
-->
<!-- End Description / Authors Row -->

<!-- Labels / Hooks Row -->
<div class="flex flex-wrap justify-between gap-x-4 gap-y-2 container mx-auto mb-6">
<div
Expand Down
4 changes: 2 additions & 2 deletions pages/objects/create.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">
import {PutObjectCommand, S3Client} from "@aws-sdk/client-s3";
import {IconSquareRoundedPlus, IconExclamationCircle, IconTrash, IconArrowLeft} from '@tabler/icons-vue';
import {
v2DataClass,
Expand Down Expand Up @@ -245,7 +244,8 @@ async function submit() {
dataClass: resourceDataclass.value,
preferredEndpoint: '', //TODO
metadataLicenseTag: metaLicense.value,
defaultDataLicenseTag: dataLicense.value
defaultDataLicenseTag: dataLicense.value,
authors: Array.from(authors.value.values())
}).then(project => {
console.log(project)
createdResource.value = project
Expand Down

0 comments on commit 2ba55f0

Please sign in to comment.