diff --git a/UI/src/app/attachphoto/photolist.html b/UI/src/app/attachphoto/photolist.html index 2db15d8..66594e5 100644 --- a/UI/src/app/attachphoto/photolist.html +++ b/UI/src/app/attachphoto/photolist.html @@ -27,11 +27,14 @@ {{item.photo}} - @if (item.id > 0) { - } diff --git a/UI/src/app/attachphoto/photolist.ts b/UI/src/app/attachphoto/photolist.ts index 817b4fa..6b0b1c2 100644 --- a/UI/src/app/attachphoto/photolist.ts +++ b/UI/src/app/attachphoto/photolist.ts @@ -5,19 +5,20 @@ import { CommonUtilities, HttpUtility, LookupService } from '../shares'; import { DialogService ,DynamicDialogConfig,DynamicDialogModule, DynamicDialogRef} from 'primeng/dynamicdialog'; import { ConfirmationService, MessageService } from 'primeng/api'; import { AddPhoto } from './add.photo'; -import { LookupEdit, PersonPhotoDto } from '../models'; +import { PersonPhotoDto } from '../models'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { TableModule } from 'primeng/table'; import { ButtonModule } from 'primeng/button'; +import { TooltipModule } from 'primeng/tooltip'; import { AuthenticationService } from '../user-services'; import { HttpResponse } from '@angular/common/http'; import { PersonService } from '../person'; @Component({ selector: 'photo-list', - imports: [CommonModule, FormsModule, DynamicDialogModule, + imports: [CommonModule, FormsModule, DynamicDialogModule,TooltipModule, ButtonModule, TableModule], templateUrl: './photolist.html', styleUrls: ['./photolist.css'], diff --git a/UI/src/app/person/person.edit.ts b/UI/src/app/person/person.edit.ts index 5379433..7a96559 100644 --- a/UI/src/app/person/person.edit.ts +++ b/UI/src/app/person/person.edit.ts @@ -656,7 +656,10 @@ showAttachment(title:string): void { const deleteIds = ritem.deleteIds; if (item) { console.log("after close " + title, item); - this.messageService.add({severity:'success', summary: title, detail: "photo attachment " + item.length}); + if (item.length > 0) + { + this.messageService.add({severity:'success', summary: title, detail: "photo attachment " + item.length}); + } //update the current list // callback(item); this.updatePhotoList(item);