Skip to content

Commit

Permalink
Restore DLP loading bar, add skeleton loader
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Oct 7, 2022
1 parent 2da58b5 commit 209b85f
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion web/src/views/DandisetLandingView/DandisetLandingView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
/>
</v-toolbar>
<v-container
v-if="currentDandiset"
fluid
class="grey lighten-4 pa-0"
>
Expand All @@ -20,7 +19,16 @@
/>
<v-row no-gutters>
<v-col :cols="$vuetify.breakpoint.smAndDown ? 12 : 10">
<v-sheet
v-if="!currentDandiset || loading"
class="py-8 px-7"
>
<v-skeleton-loader
type="article, list-item, image@2"
/>
</v-sheet>
<DandisetMain
v-else
:schema="schema"
:meta="meta"
/>
Expand All @@ -29,14 +37,28 @@
v-if="!$vuetify.breakpoint.smAndDown"
cols="2"
>
<v-sheet
v-if="!currentDandiset || loading"
class="py-3"
>
<v-skeleton-loader type="card@3" />
</v-sheet>
<DandisetSidebar
v-else
:user-can-modify-dandiset="userCanModifyDandiset"
/>
</v-col>
</v-row>
<v-row v-if="$vuetify.breakpoint.smAndDown">
<v-col cols="12">
<v-sheet
v-if="!currentDandiset || loading"
class="py-3"
>
<v-skeleton-loader type="card-heading, list-item@5" />
</v-sheet>
<DandisetSidebar
v-else
:user-can-modify-dandiset="userCanModifyDandiset"
/>
</v-col>
Expand Down

0 comments on commit 209b85f

Please sign in to comment.