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

@@ -57,14 +57,6 @@
<div class="dd-card-preview">
<h6 class="uppercase">Digital Data</h6>
<h2>signFlow</h2>
@if (isReadOnly)
{
<button type="button" id="btn-copy">
<span class="material-symbols-outlined">
content_copy
</span>
</button>
}
</div>
<div class="dd-card-info">
<div class="logo">
@@ -201,19 +193,6 @@
});
</script>
}
else
{
<script nonce="@nonce">
document.getElementById('btn-copy').addEventListener('click', function () {
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' });
});
});
</script>
}
<script nonce="@nonce">
const collapseNav = () => {
document.addEventListener('click', function (event) {