Toolbar-Button Fix, QuickMove-Tab, Schlagwörter-Sync, Abteilungsverwaltung

- Toolbar-Button öffnet Settings via browserAction.onClicked statt defektem Popup
- Button-Label "Vorlagen & Signaturen" statt Icon
- Tab "Erledigt" → "QuickMove" umbenannt
- QuickMove: E-Mails markieren + in Zielordner verschieben
- Schlagwörter-Sync aus Gitea (_config/schlagwoerter.json)
- Abteilungen anlegen (+Button)
- attachSignature-Fix entfernt
- message_display_action für QuickMove-Button

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kendrick Bollens
2026-06-03 14:02:56 +02:00
parent ee24caf8b7
commit edb979a1b2
9 changed files with 509 additions and 25 deletions

21
message_popup.js Normal file
View File

@@ -0,0 +1,21 @@
(async () => {
const result = await browser.storage.local.get('erledigt_config');
const actions = (result.erledigt_config || {}).actions || [];
const list = document.getElementById('action-list');
if (actions.length === 0) {
list.innerHTML = '<div class="empty-state">Keine Aktionen konfiguriert.</div>';
return;
}
for (let i = 0; i < actions.length; i++) {
const action = actions[i];
const btn = document.createElement('button');
btn.textContent = action.name || `Aktion ${i + 1}`;
btn.addEventListener('click', async () => {
await browser.runtime.sendMessage({ action: 'erledigtAction', index: i });
window.close();
});
list.appendChild(btn);
}
})();