Skip to content

Commit

Permalink
feat: update notebook menu
Browse files Browse the repository at this point in the history
  • Loading branch information
joselegitan committed Nov 8, 2023
1 parent 2719dd2 commit 62a3447
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/MainMap/FavoriteNoteBook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,31 @@
</IconButton>
<IconButton
:label="$t('favorites.export_pdf')"
class="tw-w-8 tw-h-8"
class="tw-h-8"
:href="pdfLink"
target="_blank"
@click="exportLink('export_pdf')"
>
<FontAwesomeIcon icon="print" />
<p class="tw-text-sm">{{ $t('favorites.notebook.print') }}</p>
</IconButton>
<IconButton
:label="$t('favorites.export_csv')"
class="tw-w-8 tw-h-8"
class="tw-h-8"
:href="csvLink"
target="_blank"
@click="exportLink('export_csv')"
>
<FontAwesomeIcon icon="file-csv" />
<p class="tw-text-sm">{{ $t('favorites.notebook.export') }}</p>
</IconButton>
<IconButton
:label="$t('favorites.menu_clear')"
class="tw-w-8 tw-h-8"
class="tw-h-8"
@click="removeFavorites()"
>
<FontAwesomeIcon icon="trash" />
<p class="tw-text-sm">{{ $t('favorites.notebook.remove') }}</p>
</IconButton>
</IconsBar>
</div>
Expand Down
3 changes: 3 additions & 0 deletions locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default {
notebook: {
title: 'Favorites notebook',
share: 'Share',
print: 'Print',
export: 'Export',
remove: 'Remove',
},
noFavs:
'You do not have any favorite places yet. You can do this by selecting a location on the map, then saving it as a favorite.',
Expand Down
3 changes: 3 additions & 0 deletions locales/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default {
notebook: {
title: 'Cuaderno de favoritos',
share: 'Partager',
print: 'Imprimer',
export: 'Exporter',
remove: 'Supprimer',
},
noFavs:
'Todavía no tienes ningún lugar marcado. Puedes hacerlo seleccionando un lugar en el mapa y guardándolo como favorito',
Expand Down
3 changes: 3 additions & 0 deletions locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export default {
notebook: {
title: 'Carnet des favoris',
share: 'Partager',
print: 'Imprimer',
export: 'Exporter',
remove: 'Supprimer',
},
noFavs:
"Vous n'avez pas encore de lieux en favoris. Vous pouvez le faire en sélectionnant un lieu sur la carte, puis en le mémorisant comme favori.",
Expand Down

0 comments on commit 62a3447

Please sign in to comment.