added compose example for email services in case no email services are present in the active compose

This commit is contained in:
ChrispyBacon-dev 2026-04-16 11:57:38 +02:00
parent 5e4ff1f4a9
commit aba3499de4
12 changed files with 152 additions and 1 deletions

View file

@ -2070,6 +2070,14 @@ async function deleteIdP(friendlyName) {
}
}
async function emailCopyCompose(btn) {
const content = document.getElementById('composeContent').innerText;
await navigator.clipboard.writeText(content);
const original = btn.innerText;
btn.innerText = 'Copied!';
setTimeout(() => { btn.innerText = original; }, 2000);
}
async function emailCheckPermissions() {
try {
const response = await fetch('/email/check-permissions', {