Hima 6 years ago
parent
commit
e6e7b3cdaf

+ 1 - 1
src/app/dashboard/final-accreditation-of-trainees/final-accerditation-add/final-accerditation-add.component.html

@@ -225,7 +225,7 @@
                           <label for="file{{i}}" class="iconUpload-w"><i class="fas fa-upload" style="color: #03aa9e"></i></label>
                           <!-- <span class="fileName-w">{{file.nameFile}}</span> -->
                         </td>
-                        <td><a class="downloadFile-w" href="{{authSer.pathImg + file.file}}" target="_blank"><i class="fas fa-download"></i></a></td>
+                        <td><a class="downloadFile-w" href="{{authSer.pathImg + file.file}}" target="_blank" *ngIf="file.file"><i class="fas fa-download"></i></a></td>
                         <td><button type="button" class="btn btn-danger form-control deleteRow-w" (click)="onDeleteRow(i)">حذف</button></td>
                       </tr>
                     </tbody>