Skip to content

Commit

Permalink
fix: add translation for delete site
Browse files Browse the repository at this point in the history
And add todo to check why current_user return
different keys .

Reviewed-by: andriacap
  • Loading branch information
andriacap committed Oct 25, 2024
1 parent 37e4816 commit 02114e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/src/app/add-site/add-site.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@
<button class="btn btn-outline-success btn-submit" type="submit" [disabled]="!edit_btn">
{{ submit_btn_text | translate }}
</button>
<!-- TODO: check if max_level_profil can be id_droit_max -->
<button type="button" *ngIf="id_site && currentUser.max_level_profil > 5"
class="btn btn-outline-danger btn-delete" (click)="openDeleteModal(content)">
<i class="icon-bin delete-site"></i>Supprimer le site
<i class="icon-bin delete-site"></i>{{ 'ACTIONS.DELETE' | translate: {article:('ARTICLES.LE' | translate), varname: ('SITE_MNGMT.SITE' | translate) } }}
</button>
<button class="btn btn-outline-secondary btn-cancel" type="button" (click)="onCancel()">
{{ 'BUTTONS.BACK_TO_LIST' | translate }}
Expand Down

0 comments on commit 02114e6

Please sign in to comment.