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

FEAT #16956 TIME 0:30 add button to edit external uder + chnage directory and component name

parent eb30b1c6
......@@ -578,7 +578,7 @@ export class ActionsService implements OnDestroy {
const dialogRef = this.dialog.open(SendExternalSignatoryBookActionComponent, {
panelClass: 'maarch-modal',
disableClose: true,
width: '500px',
width: '580px',
data: this.setDatasActionToSend()
});
dialogRef.afterClosed().pipe(
......
......@@ -138,7 +138,7 @@ import { SignatureBookComponent } from './signature-book.component';
import { VisaWorkflowModalComponent } from './visa/modal/visa-workflow-modal.component';
import { ExternalVisaWorkflowComponent } from './visa/externalVisaWorkflow/external-visa-workflow.component';
import { ProfileContactsGroupsComponent } from './profile/contacts-groups/profile-contacts-groups.component';
import { CreateUserOtpComponent } from './visa/externalVisaWorkflow/createUserOtp/create-user-otp.component';
import { CreateExternalUserComponent } from './visa/externalVisaWorkflow/createExternalUser/create-external-user.component';
import { EditorOptionComponent } from './profile/parameters/editorOption/editor-option.component';
import { BasketColorComponent } from './profile/parameters/basketsColor/basket-color.component';
......@@ -295,7 +295,7 @@ export class MyHammerConfig extends HammerGestureConfig {
ProfileHistoryComponent,
ProfileOtherPluginComponent,
AddinOutlookConfigurationModalComponent,
CreateUserOtpComponent
CreateExternalUserComponent
],
exports : [
SharedModule
......
......@@ -8,11 +8,11 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { of } from 'rxjs';
@Component({
templateUrl: 'create-user-otp.component.html',
styleUrls: ['create-user-otp.component.scss'],
templateUrl: 'create-external-user.component.html',
styleUrls: ['create-external-user.component.scss'],
})
export class CreateUserOtpComponent implements OnInit {
export class CreateExternalUserComponent implements OnInit {
sources: any[] = [];
......@@ -58,7 +58,7 @@ export class CreateUserOtpComponent implements OnInit {
public translate: TranslateService,
public http: HttpClient,
public functions: FunctionsService,
private dialogRef: MatDialogRef<CreateUserOtpComponent>,
private dialogRef: MatDialogRef<CreateExternalUserComponent>,
public notify: NotificationService,
@Inject(MAT_DIALOG_DATA) public data: any
......
......@@ -46,7 +46,7 @@
style="opacity:0.5;"></mat-icon>
</ng-container>
<div mat-line class="workflowLine">
<div class="workflowLineContainer" (click)="openCreateUserOtp(diffusion)">
<div class="workflowLineContainer">
<div class="workflowLineLabel" [class.unauthorized]="!diffusion.hasPrivilege || !diffusion.isValid" [title]="diffusion.labelToDisplay">
{{diffusion.labelToDisplay}}
<ng-container *ngIf="diffusion.process_date != null && diffusion.delegatedBy !== null">
......@@ -70,6 +70,10 @@
</div>
<div *ngIf="diffusion.hasPrivilege && diffusion.isValid">
<ng-container>
<button mat-icon-button *ngIf="canManageUser() && diffusion.item_id === null"
(click)="openCreateUserOtp(diffusion)" [title]="'lang.updateOtp' | translate">
<mat-icon class="fas fa-edit" color="primary"></mat-icon>
</button>
<button class="currentRoleButton" [class.readonly]="!adminMode" [color]="diffusion.role === 'visa' ? 'default':'primary'" mat-raised-button
title="{{'lang.' + diffusion.role | translate}}"
[matMenuTriggerFor]="rolesMenu" [disabled]="!adminMode">{{'lang.' + diffusion.role + (diffusion.role === 'sign' ? 'User' : '') | translate}}</button>
......
......@@ -9,7 +9,7 @@ import { FormControl } from '@angular/forms';
import { ScanPipe } from 'ngx-pipes';
import { Observable, of } from 'rxjs';
import { MatDialog } from '@angular/material/dialog';
import { CreateUserOtpComponent } from './createUserOtp/create-user-otp.component';
import { CreateExternalUserComponent } from './createExternalUser/create-external-user.component';
import { ActionsService } from '@appRoot/actions/actions.service';
@Component({
......@@ -358,7 +358,7 @@ export class ExternalVisaWorkflowComponent implements OnInit {
role: item.role,
availableRoles: item.externalInformations.availableRoles
};
const dialogRef = this.dialog.open(CreateUserOtpComponent, {
const dialogRef = this.dialog.open(CreateExternalUserComponent, {
panelClass: 'maarch-modal',
disableClose: true,
width: '500px',
......
......@@ -2512,5 +2512,7 @@
"securityModeInfo": "The user will be notified by <b>email</b> and will receive a <b> security code </b> by <b> {{mode}} </b> at the time of his turn in the workflow.",
"frFormatPhone": "Format: +33XXXXXXXXX",
"youSign": "Yousign",
"source": "Source"
}
"source": "Source",
"isRequired": "is required",
"updateOtp": "Edit external user"
}
\ No newline at end of file
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