Skip to content

Commit

Permalink
Loading spinner for table
Browse files Browse the repository at this point in the history
  • Loading branch information
thebspin committed Mar 24, 2020
1 parent 65140be commit 0705a56
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 8 additions & 1 deletion components/MainTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,15 @@
:sort-desc="true"
outlined
selectable
:busy="!countries.length > 0"
@row-clicked="rowClicked"
/>
><template v-slot:table-busy>
<div class="text-center text-info my-2">
<b-spinner class="align-middle"></b-spinner>
<strong>Loading...</strong>
</div>
</template></b-table
>
<b-pagination
v-if="countries.length > 0"
v-model="currentPage"
Expand Down
8 changes: 6 additions & 2 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ export default {
** Headers of the page
*/
head: {
title: process.env.npm_package_name || "",
title:
process.env.npm_package_name ||
"Covid-19 tracker | Almost realtime numbers about Corona",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "description",
name: "description",
content: process.env.npm_package_description || ""
content:
process.env.npm_package_description ||
"Tracking the latest corona stats worldwide almost realtime"
}
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }]
Expand Down

0 comments on commit 0705a56

Please sign in to comment.