feat: Kopierschaltfläche von der linken Navigationsleiste in die pspdf-kit Symbolleiste verschoben.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user