Browse Source

fix

master
drfelfel 1 year ago
parent
commit
7d6781ba20
2 changed files with 4 additions and 3 deletions
  1. +1
    -1
      src/routes/panel/volunteer/table/table.component.html
  2. +3
    -2
      src/routes/panel/volunteer/table/table.component.ts

+ 1
- 1
src/routes/panel/volunteer/table/table.component.html View File

@ -209,7 +209,7 @@
<mat-icon>arrow_back</mat-icon>
</a>
<button mat-icon-button (click)="verify()">
<button mat-icon-button (click)="verify(element)" *ngIf="element.step == 12 && !element.vr">
<mat-icon>verified</mat-icon>
</button>
</td>

+ 3
- 2
src/routes/panel/volunteer/table/table.component.ts View File

@ -142,7 +142,7 @@ export class TableComponent implements OnInit {
this.data.data.unshift(data);
}
async verify(uid) {
async verify(element) {
const okBtn = confirm("آیا مراجعه حضوری کاربر را تایید میکنید ؟");
if (okBtn == true) {
@ -155,11 +155,12 @@ export class TableComponent implements OnInit {
info: {
method: 'ACCEPT',
data: {
uid
uid:element.uid
}
}
})
element.vr = true
}
}

Loading…
Cancel
Save