prevent from reloading igrame

This commit is contained in:
Peter Maquiran
2024-02-23 11:23:41 +01:00
parent 8831c5a160
commit 5a037cee28
@@ -53,8 +53,12 @@ export class ViewerAttachmentPage implements OnInit {
async clickDocument(viewerAttachment: ViewerAttachment, i) { async clickDocument(viewerAttachment: ViewerAttachment, i) {
this.draft = this.isSelectedAttachmentIsDraft(this.taskViewerAttachment[this.selectedIndex]) this.draft = this.isSelectedAttachmentIsDraft(this.taskViewerAttachment[this.selectedIndex])
let count = 0 let count = 0
if(this.selectedIndex == i) {
return
}
try { try {
setTimeout(async ()=> { setTimeout(async ()=> {
this.selectedIndex = i; this.selectedIndex = i;