Merge branch 'develop'

This commit is contained in:
Björn Fromme
2023-01-26 17:43:31 +01:00
6 changed files with 8713 additions and 34 deletions
+8676 -28
View File
File diff suppressed because it is too large Load Diff
@@ -1,5 +1,5 @@
<template> <template>
<div class="relative"> <div class="relative" ref="target">
<button class="button bg-button button--small w-full" <button class="button bg-button button--small w-full"
type="button" type="button"
@click.prevent="visible = !visible"> @click.prevent="visible = !visible">
@@ -40,6 +40,14 @@
return { return {
visible: false, visible: false,
} }
} },
mounted () {
let self = this
document.addEventListener('click', e => {
if (self.$refs.target !== undefined && self.$refs.target.contains(e.target) === false) {
self.visible = false
}
})
}
} }
</script> </script>
@@ -1,5 +1,5 @@
<template> <template>
<div class="relative" v-if="hasSelectedRentals"> <div class="relative" v-if="hasSelectedRentals" ref="target">
<button class="button bg-button button--small" @click.prevent="visible = !visible"> <button class="button bg-button button--small" @click.prevent="visible = !visible">
<span> <span>
Größen Größen
@@ -58,6 +58,14 @@
} }
return result return result
} }
},
mounted () {
let self = this
document.addEventListener('click', e => {
if (self.$refs.target !== undefined && self.$refs.target.contains(e.target) === false) {
self.visible = false
}
})
} }
} }
</script> </script>
@@ -1,5 +1,5 @@
<template> <template>
<div class="relative" tabindex="0"> <div class="relative" ref="target">
<button class="button bg-button button--small" @click.prevent="visible = !visible"> <button class="button bg-button button--small" @click.prevent="visible = !visible">
<span> <span>
Zustieg Zustieg
@@ -46,6 +46,14 @@
visible: false, visible: false,
pickupId: this.participant.pickupId pickupId: this.participant.pickupId
} }
},
mounted () {
let self = this
document.addEventListener('click', e => {
if (self.$refs.target !== undefined && self.$refs.target.contains(e.target) === false) {
self.visible = false
}
})
} }
} }
</script> </script>
@@ -1,5 +1,5 @@
<template> <template>
<div class="relative" v-if="hasServices"> <div class="relative" v-if="hasServices" ref="target">
<button class="button bg-button button--small" type="button" @click.prevent="visible = !visible"> <button class="button bg-button button--small" type="button" @click.prevent="visible = !visible">
<span> <span>
{{ subType.label }} {{ subType.label }}
@@ -82,6 +82,14 @@
hasServices () { hasServices () {
return Object.keys(this.availableServices).length > 0; return Object.keys(this.availableServices).length > 0;
} }
},
mounted () {
let self = this
document.addEventListener('click', e => {
if (self.$refs.target !== undefined && self.$refs.target.contains(e.target) === false) {
self.visible = false
}
})
} }
} }
</script> </script>
@@ -12,7 +12,6 @@
{{ service.name }} {{ service.name }}
</span> </span>
</label> </label>
</div> </div>
</template> </template>