Fixed leden toevoegen
All checks were successful
Build and Deploy / Deploy (push) Successful in 2m16s
All checks were successful
Build and Deploy / Deploy (push) Successful in 2m16s
This commit is contained in:
parent
99f62900e5
commit
0bad662565
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="showInstallGuide !== null && showInstallGuide" class="bg-neutral-1100 dark:bg-neutral-900 h-screen flex flex-col px-5 text-center text-black dark:text-gray-200">
|
<div v-if="showInstallGuide !== null && showInstallGuide && host != 'localhost'" class="bg-neutral-1100 dark:bg-neutral-900 h-screen flex flex-col px-5 text-center text-black dark:text-gray-200">
|
||||||
<h1 class="font-bold text-3xl text-center mb-10 mt-20 text-primary">Reddingsbrigade Waddinxveen</h1>
|
<h1 class="font-bold text-3xl text-center mb-10 mt-20 text-primary">Reddingsbrigade Waddinxveen</h1>
|
||||||
<p class="mb-10">Om gebruik te maken van de WRB App moet je deze installeren</p>
|
<p class="mb-10">Om gebruik te maken van de WRB App moet je deze installeren</p>
|
||||||
<h2 class="font-bold">Op een iPhone:</h2>
|
<h2 class="font-bold">Op een iPhone:</h2>
|
||||||
@ -39,7 +39,10 @@ import { Device } from '@capacitor/device';
|
|||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const showInstallGuide = ref(null)
|
const showInstallGuide = ref(null)
|
||||||
|
|
||||||
|
const host = ref(null)
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
host.value = window.location.hostname
|
||||||
userStore.init()
|
userStore.init()
|
||||||
|
|
||||||
Device.getInfo().then(info => {
|
Device.getInfo().then(info => {
|
||||||
|
@ -176,11 +176,13 @@ const csvToJson = (csv) => {
|
|||||||
|
|
||||||
if (groups[2] === 'Week') groups[2] = 'Vrijdag'
|
if (groups[2] === 'Week') groups[2] = 'Vrijdag'
|
||||||
|
|
||||||
console.log(result[i]);
|
let inwedstrijdteam
|
||||||
console.log(usersStore.ledenlijst.filter(x => x.relatiecode === result[i].Relatiecode));
|
if (usersStore.ledenlijst.filter(x => x.relatiecode === result[i].Relatiecode)[0]) {
|
||||||
|
inwedstrijdteam = usersStore.ledenlijst.filter(x => x.relatiecode === result[i].Relatiecode)[0].wedstrijdteam;
|
||||||
|
} else {
|
||||||
|
inwedstrijdteam = false;
|
||||||
|
}
|
||||||
|
|
||||||
const inwedstrijdteam = usersStore.ledenlijst.filter(x => x.relatiecode === result[i].Relatiecode)[0].wedstrijdteam;
|
|
||||||
|
|
||||||
const wedstrijdteam = inwedstrijdteam ? true : false
|
const wedstrijdteam = inwedstrijdteam ? true : false
|
||||||
|
|
||||||
newLedenlijst.value.push({ relatiecode: result[i].Relatiecode, wedstrijdteam, fullName: result[i]['Volledige naam (1)'], email: [result[i]['E-mail'], result[i]['2e E-mail']], groups: [...new Set(groups)], diploma: result[i]['Diploma dropdown 1'] })
|
newLedenlijst.value.push({ relatiecode: result[i].Relatiecode, wedstrijdteam, fullName: result[i]['Volledige naam (1)'], email: [result[i]['E-mail'], result[i]['2e E-mail']], groups: [...new Set(groups)], diploma: result[i]['Diploma dropdown 1'] })
|
||||||
|
6
package-lock.json
generated
Normal file
6
package-lock.json
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "wrbapp",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user