Add secondary mail action bar
This commit is contained in:
parent
cc3f796ca3
commit
9a4aade072
3 changed files with 120 additions and 16 deletions
33
frontend-js/dist/app.js
vendored
33
frontend-js/dist/app.js
vendored
|
|
@ -1,3 +1,36 @@
|
|||
(function () {
|
||||
function ensureActionBar() {
|
||||
const ribbon = document.querySelector(".ribbon");
|
||||
if (!ribbon || document.querySelector(".mail-actionbar")) return;
|
||||
|
||||
const bar = document.createElement("div");
|
||||
bar.className = "mail-actionbar";
|
||||
bar.innerHTML = `
|
||||
<label class="action-search" aria-label="Suchen">
|
||||
<span aria-hidden="true">⌕</span>
|
||||
<input type="search" placeholder="Suchen">
|
||||
</label>
|
||||
<button class="action-btn primary" type="button"><span aria-hidden="true">✉</span> Neu</button>
|
||||
<button class="action-btn" type="button" data-action-refresh><span aria-hidden="true">↻</span> Aktualisieren</button>
|
||||
<span class="action-separator"></span>
|
||||
<button class="action-btn" type="button"><span aria-hidden="true">↩</span> Antworten</button>
|
||||
<button class="action-btn" type="button"><span aria-hidden="true">↪</span> Weiterleiten</button>
|
||||
<span class="action-separator"></span>
|
||||
<button class="action-btn muted" type="button"><span aria-hidden="true">⚑</span> Markieren</button>
|
||||
<button class="action-btn muted" type="button"><span aria-hidden="true">▣</span> Archivieren</button>
|
||||
<button class="action-btn muted" type="button"><span aria-hidden="true">⏲</span> Zurueckstellen</button>
|
||||
<button class="action-btn muted" type="button"><span aria-hidden="true">⚡</span> Schnelle Aktionen</button>
|
||||
<button class="action-btn muted" type="button"><span aria-hidden="true">⌫</span> Loeschen</button>
|
||||
`;
|
||||
ribbon.insertAdjacentElement("afterend", bar);
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", ensureActionBar);
|
||||
document.addEventListener("click", (event) => {
|
||||
if (event.target.closest("[data-action-refresh]")) window.location.reload();
|
||||
});
|
||||
})();
|
||||
|
||||
(function () {
|
||||
const handleWidth = 6;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue