Now with dropdown aiutoclose

ref #48
This commit is contained in:
Nicolai Ort 2021-02-27 19:32:21 +01:00
parent 3b7c25b106
commit c89caf7855

View File

@ -70,6 +70,7 @@
.catch((err) => {});
}
function generateSponsoringContract(locale) {
sponsoring_contracts_download_open = false;
const toast = Toastify({
text: $_("generating-pdf"),
duration: -1,
@ -120,7 +121,6 @@
.catch((err) => {
console.error(err);
});
}
</script>
@ -235,14 +235,18 @@
class="block w-full text-left px-4 py-2 text-sm text-gray-700">Select
language</span>
<button
on:click={() =>{generateSponsoringContract("de")}}
on:click={() => {
generateSponsoringContract('de');
}}
type="submit"
class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900"
role="menuitem">
German
</button>
<button
on:click={() =>{generateSponsoringContract("en")}}
on:click={() => {
generateSponsoringContract('en');
}}
type="submit"
class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900"
role="menuitem">