mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
16 lines
373 B
JavaScript
16 lines
373 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();
|
|
}
|
|
}
|