Skip to content

Commit

Permalink
fix(toast): missing tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord committed Jun 5, 2023
1 parent a069b03 commit 90cfe20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
</button>

<button *ngIf="hasGeoService()" mat-icon-button igoStopPropagation panelLeftButton tooltip-position="below"
[matTooltip]="((potententialLayerisAdded$ | async) ? 'toastPanel.removeLayer' : 'toastPanel.addLayer') | translate"
matTooltipShowDelay="500" [color]="(potententialLayerisAdded$ | async) ? 'warn' : ''" (click)="handleLayer()">
<mat-icon [svgIcon]="(potententialLayerisAdded$ | async) ? 'delete' : 'plus'">
</mat-icon>
Expand Down
4 changes: 3 additions & 1 deletion src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"standardExtent": "Reduce",
"standardExtentTooltip": "Reduce panel",
"previousFeatureTooltip": "Previous feature ( shortcut = left arrow)",
"nextFeatureTooltip": "Next feature ( shortcut = right arrow)"
"nextFeatureTooltip": "Next feature ( shortcut = right arrow)",
"addLayer": "Add the associated layer to the map",
"removeLayer": "Remove the associated layer from the map"
},
"home-extent": {
"tooltip": "Go back to initial position"
Expand Down
4 changes: 3 additions & 1 deletion src/locale/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"standardExtent": "Réduire",
"standardExtentTooltip": "Réduire la fenêtre",
"previousFeatureTooltip": "Entité précédente ( raccouci clavier = flèche gauche )",
"nextFeatureTooltip": "Prochaine entité ( raccouci clavier = flèche droite )"
"nextFeatureTooltip": "Prochaine entité ( raccouci clavier = flèche droite )",
"addLayer": "Ajouter la couche de donnée associée.",
"removeLayer": "Supprimer la couche de donnée associée de la carte."
},
"home-extent": {
"tooltip": "Aller à l'étendue de la carte"
Expand Down

0 comments on commit 90cfe20

Please sign in to comment.