mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
prevent from reloading igrame
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user