put in tooltip for personphoto
This commit is contained in:
@@ -27,11 +27,14 @@
|
|||||||
<td >{{item.photo}}</td>
|
<td >{{item.photo}}</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<button pButton type="button" icon="pi pi-times" class="p-button-rounded text-red-500 p-button-text p-button-raised mr-2"
|
<button pButton type="button" icon="pi pi-times"
|
||||||
|
pTooltip="Delete" class="p-button-rounded text-red-500 p-button-text p-button-raised mr-2"
|
||||||
(click)="remove(item.id)"></button>
|
(click)="remove(item.id)"></button>
|
||||||
|
|
||||||
@if (item.id > 0) {
|
@if (item.id > 0) {
|
||||||
<button pButton type="button" icon="pi pi-file" class="p-button-rounded p-button-text p-button-raised"
|
<button pButton type="button" icon="pi pi-file"
|
||||||
|
pTooltip="Download Photo"
|
||||||
|
class="p-button-rounded p-button-text p-button-raised"
|
||||||
(click)="downloadAttachment(item.id)"></button>
|
(click)="downloadAttachment(item.id)"></button>
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -5,19 +5,20 @@ import { CommonUtilities, HttpUtility, LookupService } from '../shares';
|
|||||||
import { DialogService ,DynamicDialogConfig,DynamicDialogModule, DynamicDialogRef} from 'primeng/dynamicdialog';
|
import { DialogService ,DynamicDialogConfig,DynamicDialogModule, DynamicDialogRef} from 'primeng/dynamicdialog';
|
||||||
import { ConfirmationService, MessageService } from 'primeng/api';
|
import { ConfirmationService, MessageService } from 'primeng/api';
|
||||||
import { AddPhoto } from './add.photo';
|
import { AddPhoto } from './add.photo';
|
||||||
import { LookupEdit, PersonPhotoDto } from '../models';
|
import { PersonPhotoDto } from '../models';
|
||||||
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { TableModule } from 'primeng/table';
|
import { TableModule } from 'primeng/table';
|
||||||
import { ButtonModule } from 'primeng/button';
|
import { ButtonModule } from 'primeng/button';
|
||||||
|
import { TooltipModule } from 'primeng/tooltip';
|
||||||
import { AuthenticationService } from '../user-services';
|
import { AuthenticationService } from '../user-services';
|
||||||
import { HttpResponse } from '@angular/common/http';
|
import { HttpResponse } from '@angular/common/http';
|
||||||
import { PersonService } from '../person';
|
import { PersonService } from '../person';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'photo-list',
|
selector: 'photo-list',
|
||||||
imports: [CommonModule, FormsModule, DynamicDialogModule,
|
imports: [CommonModule, FormsModule, DynamicDialogModule,TooltipModule,
|
||||||
ButtonModule, TableModule],
|
ButtonModule, TableModule],
|
||||||
templateUrl: './photolist.html',
|
templateUrl: './photolist.html',
|
||||||
styleUrls: ['./photolist.css'],
|
styleUrls: ['./photolist.css'],
|
||||||
|
|||||||
@@ -656,7 +656,10 @@ showAttachment(title:string): void {
|
|||||||
const deleteIds = ritem.deleteIds;
|
const deleteIds = ritem.deleteIds;
|
||||||
if (item) {
|
if (item) {
|
||||||
console.log("after close " + title, 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
|
//update the current list
|
||||||
// callback(item);
|
// callback(item);
|
||||||
this.updatePhotoList(item);
|
this.updatePhotoList(item);
|
||||||
|
|||||||
Reference in New Issue
Block a user