mirror of
https://0xacab.org/sutty/sutty
synced 2025-03-15 06:18:17 +00:00
Merge branch 'issue-15068' into production.panel.sutty.nl
This commit is contained in:
commit
805fb58fa7
4 changed files with 7 additions and 7 deletions
|
@ -39,13 +39,13 @@ export default class extends Controller {
|
|||
|
||||
if (!this.element.getAttributeNames().some(x => x.startsWith("hx-"))) this.element.submit();
|
||||
|
||||
window.dispatchEvent(new CustomEvent("notification:show", { detail: { id: this.submittingIdValue } }));
|
||||
window.dispatchEvent(new CustomEvent("notification:show", { detail: { value: this.submittingIdValue } }));
|
||||
} else {
|
||||
event?.stopPropagation();
|
||||
|
||||
this.element.classList.add("was-validated");
|
||||
|
||||
window.dispatchEvent(new CustomEvent("notification:show", { detail: { id: this.invalidIdValue } }));
|
||||
window.dispatchEvent(new CustomEvent("notification:show", { detail: { value: this.invalidIdValue } }));
|
||||
}
|
||||
|
||||
this.submitting = false;
|
||||
|
|
|
@ -19,8 +19,8 @@ export default class extends Controller {
|
|||
* actual, se oculta.
|
||||
*/
|
||||
show(event = undefined) {
|
||||
if (event?.detail?.id !== this.element.id) {
|
||||
this.hide({ detail: { id: this.element.id } });
|
||||
if (event?.detail?.value !== this.element.id) {
|
||||
this.hide({ detail: { value: this.element.id } });
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ export default class extends Controller {
|
|||
}
|
||||
|
||||
hide(event = undefined) {
|
||||
if (event?.detail?.id !== this.element.id) return;
|
||||
if (event?.detail?.value !== this.element.id) return;
|
||||
|
||||
this.element.classList.remove(...this.showClasses);
|
||||
this.element.classList.add(...this.hideClasses);
|
||||
|
|
|
@ -959,7 +959,7 @@ en:
|
|||
add: "Add %{layout}"
|
||||
add_new: "Add new option"
|
||||
cancel: "Cancel"
|
||||
close: "Close"
|
||||
close: "Close without saving"
|
||||
edit: "Edit"
|
||||
filter: "Start typing to filter..."
|
||||
save: "Save"
|
||||
|
|
|
@ -969,7 +969,7 @@ es:
|
|||
add: "Agregar %{layout}"
|
||||
add_new: "Agregar nueva opción"
|
||||
cancel: "Cancelar"
|
||||
close: "Cerrar"
|
||||
close: "Cerrar sin guardar"
|
||||
edit: "Editar"
|
||||
filter: "Empezá a escribir para filtrar..."
|
||||
save: "Guardar"
|
||||
|
|
Loading…
Reference in a new issue