mirror of
https://github.com/we-promise/sure.git
synced 2026-04-09 23:34:50 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user