mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 21:29:38 +02: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
16 lines
500 B
JavaScript
16 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");
|
|
}
|
|
}
|
|
}
|