Commit e27f70e1 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FEAT #16956 TIME 0:20 display the correct connector + security modes when modifying

parent bf76689c
......@@ -42,7 +42,7 @@
<mat-form-field>
<input matInput style="display: none;">
<mat-radio-group #role style="display: inline-flex;flex-direction: row;" [(ngModel)]="userOTP.role" required>
<mat-radio-button *ngFor="let role of availableRoles" [value]="role.id" style="margin-left: 10px;" color="primary">
<mat-radio-button *ngFor="let role of availableRoles" [value]="role.id" style="margin-right: 20px;" color="primary">
{{ role.label }}
</mat-radio-button>
</mat-radio-group >
......
......@@ -21,11 +21,11 @@ export class CreateUserOtpComponent implements OnInit {
availableRoles: any[] = [
{
id: 'visa',
label: this.translate.instant('lang.otp_visa_yousign')
label: this.translate.instant('lang.visaUser')
},
{
id: 'sign',
label: this.translate.instant('lang.otp_sign_yousign')
label: this.translate.instant('lang.signUser')
}
];
......@@ -74,7 +74,7 @@ export class CreateUserOtpComponent implements OnInit {
tap((data: any) => {
if (data) {
this.sources = data.otp;
this.setCurrentSource(this.sources[0].id);
this.setCurrentSource(this.data !== null ? this.data.sourceId : this.sources[0].id);
if (this.data === null) {
this.userOTP.sourceId = this.sources[0].id;
this.userOTP.type = this.sources[0].type;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment