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:
21
message_popup.js
Normal file
21
message_popup.js
Normal 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);
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user