Skip to content

Commit

Permalink
fix: display public samples in the user's dashboard in the absence of…
Browse files Browse the repository at this point in the history
… projects.

fixes #1122
  • Loading branch information
NRayya committed Jun 28, 2024
1 parent e10d07f commit 2ec13cd
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 2ec13cd

Please sign in to comment.