17 files
This commit is contained in:
@@ -881,6 +881,9 @@
|
||||
"panel.notif_nav_url_global_label": "Beim Tippen öffnen",
|
||||
"panel.notif_nav_url_global_hint": "Wohin eine angetippte Benachrichtigung führt: ein Pfad wie /taskmate-admin oder /lovelace/parents, eine vollständige URL oder noAction. Gilt für alle Benachrichtigungen, sofern unten nicht pro Typ überschrieben.",
|
||||
"panel.notif_nav_url_row_placeholder": "Nutzt globalen Standard",
|
||||
"panel.notif_group_global_label": "Benachrichtigungen gruppieren als",
|
||||
"panel.notif_group_global_hint": "Benachrichtigungen mit demselben Namen werden auf dem Telefon zusammengefasst, statt sich unter die anderen Home-Assistant-Meldungen zu mischen. Gilt für alle Benachrichtigungen, sofern unten nicht pro Typ überschrieben. Leer lassen, um die Gruppierung zu deaktivieren.",
|
||||
"panel.notif_group_row_placeholder": "Gruppe: globaler Standard",
|
||||
"panel.notif_tab_title": "Benachrichtigungen",
|
||||
"panel.template_assignment_mode_label": "Zuweisungsmodus",
|
||||
"panel.template_builtin": "Integriert",
|
||||
|
||||
@@ -931,6 +931,9 @@
|
||||
"panel.notif_nav_url_global_label": "When tapped, open",
|
||||
"panel.notif_nav_url_global_hint": "Where a tapped notification opens: a path like /taskmate-admin or /lovelace/parents, a full URL, or noAction. Applies to all notifications unless overridden per type below.",
|
||||
"panel.notif_nav_url_row_placeholder": "Uses global default",
|
||||
"panel.notif_group_global_label": "Group notifications as",
|
||||
"panel.notif_group_global_hint": "Notifications sharing this name stack together on the phone instead of scattering through your other Home Assistant alerts. Applies to all notifications unless overridden per type below. Leave blank to turn grouping off.",
|
||||
"panel.notif_group_row_placeholder": "Group: global default",
|
||||
"panel.notif_send_test": "Send test",
|
||||
"panel.notif_test_sent": "Test sent to {count} recipient(s) + persistent notification",
|
||||
"panel.notif_tab_title": "Notifications",
|
||||
|
||||
@@ -931,6 +931,9 @@
|
||||
"panel.notif_nav_url_global_label": "When tapped, open",
|
||||
"panel.notif_nav_url_global_hint": "Where a tapped notification opens: a path like /taskmate-admin or /lovelace/parents, a full URL, or noAction. Applies to all notifications unless overridden per type below.",
|
||||
"panel.notif_nav_url_row_placeholder": "Uses global default",
|
||||
"panel.notif_group_global_label": "Group notifications as",
|
||||
"panel.notif_group_global_hint": "Notifications sharing this name stack together on the phone instead of scattering through your other Home Assistant alerts. Applies to all notifications unless overridden per type below. Leave blank to turn grouping off.",
|
||||
"panel.notif_group_row_placeholder": "Group: global default",
|
||||
"panel.notif_send_test": "Send test",
|
||||
"panel.notif_test_sent": "Test sent to {count} recipient(s) + persistent notification",
|
||||
"panel.notif_tab_title": "Notifications",
|
||||
|
||||
@@ -881,6 +881,9 @@
|
||||
"panel.notif_nav_url_global_label": "Au toucher, ouvrir",
|
||||
"panel.notif_nav_url_global_hint": "Où mène une notification touchée : un chemin comme /taskmate-admin ou /lovelace/parents, une URL complète ou noAction. S'applique à toutes les notifications sauf remplacement par type ci-dessous.",
|
||||
"panel.notif_nav_url_row_placeholder": "Utilise la valeur globale",
|
||||
"panel.notif_group_global_label": "Grouper les notifications sous",
|
||||
"panel.notif_group_global_hint": "Les notifications portant ce nom sont regroupées sur le téléphone au lieu de se disperser parmi vos autres alertes Home Assistant. S'applique à toutes les notifications sauf remplacement par type ci-dessous. Laisser vide pour désactiver le regroupement.",
|
||||
"panel.notif_group_row_placeholder": "Groupe : valeur globale",
|
||||
"panel.notif_tab_title": "Notifications",
|
||||
"panel.template_assignment_mode_label": "Mode d'assignation",
|
||||
"panel.template_builtin": "Intégré",
|
||||
|
||||
@@ -881,6 +881,9 @@
|
||||
"panel.notif_nav_url_global_label": "Ved trykk, åpne",
|
||||
"panel.notif_nav_url_global_hint": "Hvor et trykk på et varsel åpner: en sti som /taskmate-admin eller /lovelace/parents, en full URL, eller noAction. Gjelder alle varsler med mindre det overstyres per type nedenfor.",
|
||||
"panel.notif_nav_url_row_placeholder": "Bruker global standard",
|
||||
"panel.notif_group_global_label": "Grupper varsler som",
|
||||
"panel.notif_group_global_hint": "Varsler med samme navn samles på telefonen i stedet for å spres blant de andre Home Assistant-varslene dine. Gjelder alle varsler med mindre det overstyres per type nedenfor. La stå tomt for å slå av gruppering.",
|
||||
"panel.notif_group_row_placeholder": "Gruppe: global standard",
|
||||
"panel.notif_tab_title": "Varsler",
|
||||
"panel.template_assignment_mode_label": "Tildelingsmodus",
|
||||
"panel.template_builtin": "Innebygd",
|
||||
|
||||
@@ -881,6 +881,9 @@
|
||||
"panel.notif_nav_url_global_label": "Ved trykk, opne",
|
||||
"panel.notif_nav_url_global_hint": "Kvar eit trykk på eit varsel opnar: ein sti som /taskmate-admin eller /lovelace/parents, ein full URL, eller noAction. Gjeld alle varsel med mindre det vert overstyrt per type nedanfor.",
|
||||
"panel.notif_nav_url_row_placeholder": "Brukar global standard",
|
||||
"panel.notif_group_global_label": "Grupper varsel som",
|
||||
"panel.notif_group_global_hint": "Varsel med same namn vert samla på telefonen i staden for å spreie seg blant dei andre Home Assistant-varsla dine. Gjeld alle varsel med mindre det vert overstyrt per type nedanfor. La stå tomt for å slå av grupperinga.",
|
||||
"panel.notif_group_row_placeholder": "Gruppe: global standard",
|
||||
"panel.notif_tab_title": "Varsel",
|
||||
"panel.template_assignment_mode_label": "Tildelingsmodus",
|
||||
"panel.template_builtin": "Innebygd",
|
||||
|
||||
@@ -881,6 +881,9 @@
|
||||
"panel.notif_nav_url_global_label": "Ao tocar, abrir",
|
||||
"panel.notif_nav_url_global_hint": "Para onde uma notificação tocada abre: um caminho como /taskmate-admin ou /lovelace/parents, uma URL completa ou noAction. Aplica-se a todas as notificações, exceto se substituída por tipo abaixo.",
|
||||
"panel.notif_nav_url_row_placeholder": "Usa o padrão global",
|
||||
"panel.notif_group_global_label": "Agrupar notificações como",
|
||||
"panel.notif_group_global_hint": "As notificações com este nome são agrupadas no celular em vez de se espalharem pelos outros alertas do Home Assistant. Aplica-se a todas as notificações, exceto se substituída por tipo abaixo. Deixe em branco para desativar o agrupamento.",
|
||||
"panel.notif_group_row_placeholder": "Grupo: padrão global",
|
||||
"panel.notif_tab_title": "Notificações",
|
||||
"panel.template_assignment_mode_label": "Modo de atribuição",
|
||||
"panel.template_builtin": "Integrado",
|
||||
|
||||
@@ -886,6 +886,9 @@
|
||||
"panel.notif_nav_url_global_label": "Ao tocar, abrir",
|
||||
"panel.notif_nav_url_global_hint": "Para onde uma notificação tocada abre: um caminho como /taskmate-admin ou /lovelace/parents, um URL completo ou noAction. Aplica-se a todas as notificações, salvo substituição por tipo abaixo.",
|
||||
"panel.notif_nav_url_row_placeholder": "Usa o padrão global",
|
||||
"panel.notif_group_global_label": "Agrupar notificações como",
|
||||
"panel.notif_group_global_hint": "As notificações com este nome são agrupadas no telemóvel em vez de se dispersarem pelos outros alertas do Home Assistant. Aplica-se a todas as notificações, salvo substituição por tipo abaixo. Deixe em branco para desativar o agrupamento.",
|
||||
"panel.notif_group_row_placeholder": "Grupo: padrão global",
|
||||
"panel.notif_tab_title": "Notificações",
|
||||
"panel.template_assignment_mode_label": "Modo de atribuição",
|
||||
"panel.template_builtin": "Incorporado",
|
||||
|
||||
@@ -698,6 +698,8 @@ class TaskMatePanel extends HTMLElement {
|
||||
if (act === "notif-set-streak-cutoff"){ /* handled in _onChange */ return; }
|
||||
if (act === "notif-set-nav-url-global"){ /* handled in _onChange */ return; }
|
||||
if (act === "notif-set-nav-url-type") { /* handled in _onChange */ return; }
|
||||
if (act === "notif-set-group-global") { /* handled in _onChange */ return; }
|
||||
if (act === "notif-set-group-type") { /* handled in _onChange */ return; }
|
||||
if (act === "notif-add-parent") { this._notifAddParent(); return; }
|
||||
if (act === "notif-delete-parent") { this._notifDeleteParent(t.dataset.parentId); return; }
|
||||
if (act === "notif-add-custom") { this._notifAddCustom(); return; }
|
||||
@@ -945,6 +947,14 @@ class TaskMatePanel extends HTMLElement {
|
||||
this._notifSetNavUrl(t.dataset.typeId, t.value);
|
||||
return;
|
||||
}
|
||||
if (t.dataset.act === "notif-set-group-global") {
|
||||
this._notifSetGroup(null, t.value);
|
||||
return;
|
||||
}
|
||||
if (t.dataset.act === "notif-set-group-type") {
|
||||
this._notifSetGroup(t.dataset.typeId, t.value);
|
||||
return;
|
||||
}
|
||||
if (t.dataset.act === "notif-set-escalation") {
|
||||
this._notifSetEscalation(t.dataset.escField, t.value);
|
||||
return;
|
||||
@@ -2236,7 +2246,16 @@ class TaskMatePanel extends HTMLElement {
|
||||
async _notifSetNavUrl(typeId, navUrl) {
|
||||
const payload = { type: "taskmate/notifications/set_nav_url", nav_url: navUrl || "" };
|
||||
if (typeId) payload.type_id = typeId;
|
||||
await this._callWS(payload);
|
||||
const { ok, err } = await this._callWS(payload);
|
||||
if (!ok) this._showToast("err", this._t("panel.toast_save_failed", { error: err }));
|
||||
await this._fetchState();
|
||||
}
|
||||
|
||||
async _notifSetGroup(typeId, group) {
|
||||
const payload = { type: "taskmate/notifications/set_group", group: group || "" };
|
||||
if (typeId) payload.type_id = typeId;
|
||||
const { ok, err } = await this._callWS(payload);
|
||||
if (!ok) this._showToast("err", this._t("panel.toast_save_failed", { error: err }));
|
||||
await this._fetchState();
|
||||
}
|
||||
|
||||
@@ -4762,6 +4781,13 @@ class TaskMatePanel extends HTMLElement {
|
||||
data-act="notif-set-nav-url-global" placeholder="/taskmate-admin">
|
||||
<div class="tm-meta" style="flex-basis:100%">${this._t("panel.notif_nav_url_global_hint")}</div>
|
||||
</div>
|
||||
<div class="tm-meta" style="margin:4px 0 12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px">
|
||||
<label style="font-weight:500">${this._t("panel.notif_group_global_label")}</label>
|
||||
<input type="text" class="tm-input" style="flex:1;min-width:180px" maxlength="64"
|
||||
value="${this._esc((ns.settings && ns.settings.notification_group) || "")}"
|
||||
data-act="notif-set-group-global" placeholder="taskmate">
|
||||
<div class="tm-meta" style="flex-basis:100%">${this._t("panel.notif_group_global_hint")}</div>
|
||||
</div>
|
||||
<div class="tm-table-wrap">
|
||||
<table class="tm-table">
|
||||
<thead>
|
||||
@@ -4818,7 +4844,12 @@ class TaskMatePanel extends HTMLElement {
|
||||
<input type="text" class="tm-notif-time-input" style="width:150px"
|
||||
value="${this._esc(c.nav_url || "")}"
|
||||
data-act="notif-set-nav-url-type" data-type-id="${this._esc(t.id)}"
|
||||
placeholder="${this._t("panel.notif_nav_url_row_placeholder")}">
|
||||
placeholder="${this._esc(this._t("panel.notif_nav_url_row_placeholder"))}">
|
||||
<input type="text" class="tm-notif-time-input" style="width:150px" maxlength="64"
|
||||
value="${this._esc(c.group || "")}"
|
||||
data-act="notif-set-group-type" data-type-id="${this._esc(t.id)}"
|
||||
title="${this._esc(this._t("panel.notif_group_global_label"))}"
|
||||
placeholder="${this._esc(this._t("panel.notif_group_row_placeholder"))}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user