Fix issues

Issue 1 Fixed - Template now carries rows_to_skip.
  Issue 2 Fixed - Column headers refresh when rows_to_skip changes.
This commit is contained in:
sokie
2026-01-13 13:35:38 +01:00
parent accdbb799b
commit 7297554a55
4 changed files with 26 additions and 7 deletions

View File

@@ -45,6 +45,17 @@ export default class extends Controller {
this.#showAmountTypeValueTargets(amountTypeColumnKey);
}
refreshForm(event) {
const form = event.target.closest("form");
const input = document.createElement("input");
input.type = "hidden";
input.name = "refresh_only";
input.value = "true";
form.appendChild(input);
form.requestSubmit();
}
#showAmountTypeValueTargets(amountTypeColumnKey) {
const selectableValues = this.#uniqueValuesForColumn(amountTypeColumnKey);