mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* Transfer data model migration * Transfers and payment modeling and UI improvements * Fix CI * Transfer matching flow * Better UI for transfers * Auto transfer matching, approve, reject flow * Mark transfers created from form as confirmed * Account filtering * Excluded rejected transfers from calculations * Calculation tweaks with transfer exclusions * Clean up migration
17 lines
500 B
JavaScript
17 lines
500 B
JavaScript
import { Controller } from "@hotwired/stimulus";
|
|
|
|
// Connects to data-controller="transfer-match"
|
|
export default class extends Controller {
|
|
static targets = ["newSelect", "existingSelect"];
|
|
|
|
update(event) {
|
|
if (event.target.value === "new") {
|
|
this.newSelectTarget.classList.remove("hidden");
|
|
this.existingSelectTarget.classList.add("hidden");
|
|
} else {
|
|
this.newSelectTarget.classList.add("hidden");
|
|
this.existingSelectTarget.classList.remove("hidden");
|
|
}
|
|
}
|
|
}
|