Release v2.3.4 — QuickMove: "als gelesen" pro Aktion + dynamischer Button-Name
- QuickMove markiert Nachrichten als gelesen, pro Aktion ein-/ausschaltbar (Checkbox in den QuickMove-Einstellungen, Default an) - Button-Label heißt wie die Aktion, wenn nur eine konfiguriert ist (setLabel) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1879,6 +1879,12 @@ function renderErledigtAction(action, index) {
|
||||
${erledigtFolderOptions}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group" style="flex:0 0 auto;">
|
||||
${index === 0 ? '<label>Gelesen</label>' : ''}
|
||||
<label style="display:flex;align-items:center;gap:6px;height:34px;white-space:nowrap;font-size:13px;cursor:pointer;">
|
||||
<input type="checkbox" class="erledigt-markread" ${action.markRead !== false ? 'checked' : ''}> als gelesen
|
||||
</label>
|
||||
</div>
|
||||
<button type="button" class="btn btn-danger btn-sm erledigt-remove" title="Entfernen" style="margin-bottom:2px;">✕</button>
|
||||
`;
|
||||
if (action.targetFolder) {
|
||||
@@ -1900,10 +1906,11 @@ function getErledigtActionsFromForm() {
|
||||
const actions = [];
|
||||
const names = document.querySelectorAll('.erledigt-name');
|
||||
const folders = document.querySelectorAll('.erledigt-folder');
|
||||
const reads = document.querySelectorAll('.erledigt-markread');
|
||||
for (let i = 0; i < names.length; i++) {
|
||||
const name = names[i].value.trim();
|
||||
if (!name) continue;
|
||||
actions.push({ name, targetFolder: folders[i].value || '' });
|
||||
actions.push({ name, targetFolder: folders[i].value || '', markRead: reads[i] ? reads[i].checked : true });
|
||||
}
|
||||
return actions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user