Skip to content

Commit

Permalink
feat: add loading indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Mar 13, 2024
1 parent b49f1df commit edd0793
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/pages/web-logs/[name].vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<template>
<v-container style="height: 100%;font-family: monospace;">
<v-row v-if="loading">
<v-spacer></v-spacer>
<v-progress-circular indeterminate></v-progress-circular>
<v-spacer></v-spacer>
</v-row>
<div v-html="html">
</div>
</v-container>
Expand All @@ -20,6 +25,7 @@
},
data: () => ({
html: "",
loading: true,
}),
methods: {
async fetchData() {
Expand All @@ -31,6 +37,7 @@
html = html.replaceAll("\n", " <br/> ");
html = html.replaceAll("\r", " <br/> ");
this.html = html;
this.loading = false;
}
}
}
Expand Down

0 comments on commit edd0793

Please sign in to comment.