mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
12 lines
340 B
JavaScript
12 lines
340 B
JavaScript
import { Controller } from "stimulus"
|
|
|
|
export default class extends Controller {
|
|
static values = { target: String }
|
|
|
|
open() {
|
|
let helpModal = document.getElementById(this.targetValue)
|
|
let helpModalController = this.application.getControllerForElementAndIdentifier(helpModal, "help-modal");
|
|
helpModalController.open();
|
|
}
|
|
}
|