Skip to content

Commit cfc7ef9

Browse files
committed
history loading icon
1 parent 7c3471b commit cfc7ef9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

frontend/src/views/app/History.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<template>
22
<!-- eslint-disable max-len -->
33
<div class="mx-4 sm:mx-16 lg:mx-32">
4-
<section class="mx-auto mt-4">
4+
<div v-if="!historyFetched" class="mx-auto flex items-center justify-center mt-32">
5+
<img class="h-36" src="../../assets/loading.svg">
6+
</div>
7+
<section v-else class="mx-auto mt-4">
58
<div class="flex items-center justify-center md:justify-start w-full mb-4">
69
<h1
710
class="text-3xl sm:text-5xl my-4 inline-block text-center leading-none onboarding-sub-container-content-heading">
@@ -55,6 +58,7 @@ export default {
5558
},
5659
recommendationsAnalysisDone: false,
5760
filteredCount: null,
61+
historyFetched: false,
5862
}),
5963
methods: {
6064
async fetchUsers(request) {
@@ -108,6 +112,7 @@ export default {
108112
}
109113
}
110114
}
115+
this.historyFetched = true;
111116
this.recommendationsAnalysisDone = true;
112117
},
113118
browseAgain() {
@@ -120,6 +125,7 @@ export default {
120125
this.recommendationsAnalysis.popularity.max = null;
121126
this.recommendationsAnalysis.interests = [];
122127
this.recommendationsAnalysisDone = false;
128+
this.historyFetched = false;
123129
},
124130
updateHistory(...args) {
125131
const [key, value] = args;

0 commit comments

Comments
 (0)