Skip to content

Commit

Permalink
Merge pull request #1146 from NFDI4Chem/dashboard-samples
Browse files Browse the repository at this point in the history
fix: display public samples in the absence of projects.
  • Loading branch information
CS76 authored Aug 1, 2024
2 parents e10d07f + 2ec13cd commit 8536c26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion resources/js/Pages/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
</div>
</div>
</template>
<div v-if="projects.length > 0" class="px-8 py-8 mx-auto max-w-4xl">
<div
v-if="projects.length > 0 || samples.length > 0"
class="px-8 py-8 mx-auto max-w-4xl"
>
<div>
<div class="sm:hidden">
<label for="tabs" class="sr-only">Select a tab</label>
Expand Down
5 changes: 3 additions & 2 deletions resources/js/Pages/Project/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
<div class="mt-3 max-w-2xl text-sm text-gray-700">
nmrXiv is organized around projects. Projects can
contain as many samples as you wish and each sample
receives its very own URL. To learn more, check out our
documentation.
receives its very own URL. Use the "UPLOAD" button on
the upper left side to start uploading projects or
samples. To learn more, check out our documentation.
</div>
<!-- <button
type="button"
Expand Down

0 comments on commit 8536c26

Please sign in to comment.