Skip to content
Snippets Groups Projects
Commit 5fb2b9fa authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #12091 TIME 0:05 removed process-action component

parent 6ee93a95
No related branches found
No related tags found
No related merge requests found
<h1 mat-dialog-title></h1>
<div mat-dialog-content>
<div *ngIf="loading" class="loading" style="display:flex;height:100%;">
<mat-spinner style="margin:auto;"></mat-spinner>
</div>
<div class="row">
</div>
</div>
<div mat-dialog-actions class="actions">
<button mat-raised-button mat-button color="primary" [disabled]="loading" (click)="onSubmit()">{{lang.validate}}</button>
<button mat-raised-button mat-button [disabled]="loading" [mat-dialog-close]="">{{lang.cancel}}</button>
</div>
.highlight {
font-size: 110%;
}
.loading {
display:flex;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #ffffffb3;
z-index: 1;
overflow: hidden;
}
import { Component, OnInit, Inject } from '@angular/core';
import { LANG } from '../../translate.component';
import { NotificationService } from '../../notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { HttpClient } from '@angular/common/http';
@Component({
templateUrl: "process-action.component.html",
styleUrls: ['process-action.component.scss'],
})
export class ProcessActionComponent implements OnInit {
lang: any = LANG;
loading: boolean = false;
constructor(public http: HttpClient, private notify: NotificationService, public dialogRef: MatDialogRef<ProcessActionComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { }
ngOnInit(): void { }
onSubmit(): void {
this.loading = true;
/*this.http.put('../../rest/resourcesList/users/' + this.data.currentBasketInfo.ownerId + '/groups/' + this.data.currentBasketInfo.groupId + '/baskets/' + this.data.currentBasketInfo.basketId + '/actions/' + this.data.action.id, {resources : this.data.selectedRes})
.subscribe((data: any) => {
this.loading = false;
this.dialogRef.close('success');
}, (err: any) => {
this.notify.handleErrors(err);
this.loading = false;
});*/
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment