mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
19 lines
446 B
JavaScript
19 lines
446 B
JavaScript
import ApplicationController from "./application_controller";
|
|
|
|
export default class extends ApplicationController {
|
|
connect() {
|
|
super.connect();
|
|
}
|
|
|
|
confirm() {
|
|
const order_ids = [];
|
|
document
|
|
.querySelectorAll("#listing_orders input[name='order_ids[]']:checked")
|
|
.forEach((checkbox) => {
|
|
order_ids.push(checkbox.value);
|
|
});
|
|
|
|
this.stimulate("ResendConfirmationEmailReflex#confirm", order_ids);
|
|
}
|
|
}
|