Skip to content

Commit ebbbbac

Browse files
authored
Merge pull request #1223 from jumpserver/pr@dev@feat_add_translate
feat: add translate
2 parents 24a3a81 + 5357165 commit ebbbbac

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app/services/connect-token/acl-dialog/acl-dialog.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2 mat-dialog-title> {{ 'Login reminder' | translate }} </h2>
2323

2424
<div *ngSwitchCase="'acl_face_online_not_supported'">
2525
<mat-dialog-content>
26-
<div class="error-message">{{ 'ACL action "Face Online" not supported for this asset.' |translate }}</div>
26+
<div class="error-message">{{errorDetail }}</div>
2727
</mat-dialog-content>
2828
<mat-dialog-actions>
2929
<button (click)="closeDialog()" mat-raised-button>{{ "Close" | translate }}</button>

src/app/services/connect-token/acl-dialog/acl-dialog.component.ts

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ export class ElementACLDialogComponent implements OnInit {
4949
if (Array.isArray(error)) {
5050
error = error.join(' ');
5151
} else if (typeof error === 'object') {
52+
if (error.detail) {
53+
error = error.detail;
54+
}
5255
error = JSON.stringify(error);
5356
}
5457
return error;

0 commit comments

Comments
 (0)