Skip to content

Commit

Permalink
refactor(Location selector): better display recent locations (1 per l…
Browse files Browse the repository at this point in the history
…ine)
  • Loading branch information
raphodn committed Jan 3, 2025
1 parent 793fa90 commit 9e56fc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/LocationSelectorDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@

<v-tabs-window v-model="currentDisplay" disabled>
<v-tabs-window-item value="recent">
<LocationRecentChip v-for="(location, index) in recentLocations" :key="index" :location="location" :withRemoveAction="true" @click="selectLocation(location)" @click:close="removeRecentLocation(location)" />
<br>
<p v-for="(location, index) in recentLocations" :key="index">
<LocationRecentChip :location="location" :withRemoveAction="true" @click="selectLocation(location)" @click:close="removeRecentLocation(location)" />
</p>
<v-btn v-if="recentLocations.length" size="small" class="" @click="clearRecentLocations">
{{ $t('Common.Clear') }}
</v-btn>
Expand Down

0 comments on commit 9e56fc7

Please sign in to comment.