feat: Kopierschaltfläche von der linken Navigationsleiste in die pspdf-kit Symbolleiste verschoben.

This commit is contained in:
Developer 02
2024-10-14 18:54:29 +02:00
parent 425645a610
commit b1f771c320
6 changed files with 77 additions and 29 deletions

View File

@@ -150,8 +150,7 @@ class App {
icon: 'info',
})
}
break
break;
case 'FINISH':
result = await this.handleFinish(null)
@@ -160,8 +159,7 @@ class App {
// Redirect to success page after saving to database
window.location.href = `/EnvelopeKey/${this.envelopeKey}/Success`
}
break
break;
case 'REJECT':
Swal.fire({
@@ -200,6 +198,14 @@ class App {
Swal.showValidationMessage(`Request failed: ${res.message}`);
});
break;
case 'COPY_URL':
const url = window.location.href;
navigator.clipboard.writeText(url).then(function () {
bsNotify('Kopiert', { alert_type: 'success', delay: 4, icon_name: 'check_circle' });
}).catch(function (err) {
bsNotify('Unerwarteter Fehler', { alert_type: 'danger', delay: 4, icon_name: 'error' });
});
break;
case 'SHARE':
// Show the modal