Bug 30708: Pass csrf_token to the Vue app

It's needed since bug 34369 to POST to the syspref route

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-10-06 10:56:05 +02:00 committed by Tomas Cohen Arazi
parent 7146ce1e92
commit 0f13508c1d
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -1,6 +1,7 @@
[% USE raw %]
[% USE To %]
[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
[% USE TablesSettings %]
[% USE AuthorisedValues %]
@ -34,6 +35,8 @@
const db_columns = [% To.json(db_columns) | $raw %];
const api_mappings = [% To.json(api_mappings) | $raw %];
const csrf_token = "[% Koha.GenerateCSRF | $raw %]";
</script>
[% Asset.js("js/vue/dist/preservation.js") | $raw %]