Skip to content

Commit ba66bb6

Browse files
committed
fetch behaviour v1
1 parent ac6ffdf commit ba66bb6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

frontend/src/components/app/recommendations/HistoryRecommendations.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
v-on:save-single-choice="saveSingleChoice"
1010
class="inline-block ml-4"
1111
v-bind:name="'history'"
12-
v-bind:starting-option="'People I viewed'"
12+
v-bind:starting-option="'People I view'"
1313
v-bind:options="['People I view', 'People I like', 'Who views me', 'Who likes me', 'Whom I block']"></DropdownDisplayChoiceHistory>
1414
</div>
1515
<div class="flex w-full items-stretch sm:items-center justify-center md:justify-start mb-12 relative">
@@ -42,7 +42,7 @@
4242
v-bind:name="'interests'"
4343
v-on:save-filter-multiple="saveFilterMultiple"></MultipleFiltersDropdown>
4444
</div>
45-
<div ref="recommendationCards" class="grid grid-cols-1 md:grid-cols-2 gap-2">
45+
<div v-if="ready" ref="recommendationCards" class="grid grid-cols-1 md:grid-cols-2 gap-2">
4646
<RecommendationCard
4747
v-for="(recommendation, index) in recommendations" :key="index"
4848
v-bind:recommendation="recommendation"></RecommendationCard>
@@ -59,7 +59,7 @@ import MultipleFiltersDropdown from '@/components/shared/MultipleFiltersDropdown
5959
import DropdownDisplayChoiceHistory from '@/components/shared/DropdownDisplayChoiceHistory.vue';
6060
6161
export default {
62-
props: ['title', 'recommendationsReceived', 'recommendationsAnalysis'],
62+
props: ['title', 'recommendationsReceived', 'recommendationsAnalysis', 'ready'],
6363
components: {
6464
Sort,
6565
RecommendationCard,

frontend/src/views/app/History.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<NavBar v-bind:currentRoute="'History'"></NavBar>
55
<section class="mx-auto">
66
<HistoryRecommendations
7-
v-if="recommendationsAnalysisDone"
7+
v-bind:ready="recommendationsAnalysisDone"
88
v-on:update-history="updateHistory"
99
v-bind:title="'Potential matches'"
1010
v-bind:recommendationsReceived="recommendations"
@@ -112,6 +112,8 @@ export default {
112112
} else if (request === 'Whom I block') {
113113
console.log(5);
114114
}
115+
this.browseAgain();
116+
this.fetchUsers();
115117
},
116118
},
117119
async created() {

0 commit comments

Comments
 (0)