mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 06:09:38 +02:00
Private method syntax fix in prod
This commit is contained in:
parent
c5bf1db230
commit
a21061fb56
1 changed files with 7 additions and 7 deletions
|
@ -1,21 +1,21 @@
|
||||||
import {Controller} from "@hotwired/stimulus"
|
import { Controller } from "@hotwired/stimulus"
|
||||||
|
|
||||||
// Connects to data-controller="bulk-select"
|
// Connects to data-controller="bulk-select"
|
||||||
export default class extends Controller {
|
export default class extends Controller {
|
||||||
static targets = ["row", "group", "selectionBar", "selectionBarText", "bulkEditDrawerTitle"]
|
static targets = ["row", "group", "selectionBar", "selectionBarText", "bulkEditDrawerTitle"]
|
||||||
static values = {
|
static values = {
|
||||||
resource: String,
|
resource: String,
|
||||||
selectedIds: {type: Array, default: []}
|
selectedIds: { type: Array, default: [] }
|
||||||
}
|
}
|
||||||
|
|
||||||
connect() {
|
connect() {
|
||||||
document.addEventListener("turbo:load", this.#updateView)
|
document.addEventListener("turbo:load", this._updateView)
|
||||||
|
|
||||||
this.#updateView()
|
this._updateView()
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnect() {
|
disconnect() {
|
||||||
document.removeEventListener("turbo:load", this.#updateView)
|
document.removeEventListener("turbo:load", this._updateView)
|
||||||
}
|
}
|
||||||
|
|
||||||
bulkEditDrawerTitleTargetConnected(element) {
|
bulkEditDrawerTitleTargetConnected(element) {
|
||||||
|
@ -63,7 +63,7 @@ export default class extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
selectedIdsValueChanged() {
|
selectedIdsValueChanged() {
|
||||||
this.#updateView()
|
this._updateView()
|
||||||
}
|
}
|
||||||
|
|
||||||
#addHiddenFormInputsForSelectedIds(form, paramName, transactionIds) {
|
#addHiddenFormInputsForSelectedIds(form, paramName, transactionIds) {
|
||||||
|
@ -101,7 +101,7 @@ export default class extends Controller {
|
||||||
this.selectedIdsValue = this.rowTargets.map(t => t.dataset.id)
|
this.selectedIdsValue = this.rowTargets.map(t => t.dataset.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
#updateView = () => {
|
_updateView = () => {
|
||||||
this.#updateSelectionBar()
|
this.#updateSelectionBar()
|
||||||
this.#updateGroups()
|
this.#updateGroups()
|
||||||
this.#updateRows()
|
this.#updateRows()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue