10.01.2024
This commit is contained in:
@@ -165,18 +165,14 @@ class App {
|
||||
case 'RESET':
|
||||
result = await this.handleReset(null)
|
||||
|
||||
console.log(result)
|
||||
|
||||
if (result == true) {
|
||||
Swal.fire({
|
||||
title: 'Erfolg',
|
||||
text: 'Dokument wurde zurückgesetzt',
|
||||
icon: 'info',
|
||||
})
|
||||
} else {
|
||||
Swal.fire({
|
||||
title: 'Fehler',
|
||||
text: 'Dokument konnte nicht zurückgesetzt werden!',
|
||||
icon: 'error',
|
||||
})
|
||||
}
|
||||
|
||||
break
|
||||
@@ -293,17 +289,13 @@ class App {
|
||||
title: 'Sind sie sicher?',
|
||||
text: 'Wollen Sie das Dokument und alle erstellten Signaturen zurücksetzen?',
|
||||
icon: 'question',
|
||||
showCancelButton: true
|
||||
})
|
||||
|
||||
if (result.isConfirmed) {
|
||||
const result = this.Annotation.deleteAnnotations(this.Instance)
|
||||
return true
|
||||
const result = await this.Annotation.deleteAnnotations(this.Instance)
|
||||
}
|
||||
|
||||
if (result.isDimissed) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user