fix:privacy
This commit is contained in:
parent
9793df1c57
commit
8b26530d52
6 changed files with 120 additions and 12 deletions
|
|
@ -1,7 +1,12 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, computed } from 'vue'
|
||||
import { useQuasar } from 'quasar'
|
||||
import http from '@/plugins/http'
|
||||
import config from '@/app.config'
|
||||
import { usePrivacyStore } from '@/stores/privacy'
|
||||
|
||||
const $q = useQuasar()
|
||||
const privacyStore = usePrivacyStore()
|
||||
|
||||
const modal = defineModel<boolean>('modal', {
|
||||
required: true,
|
||||
|
|
@ -70,13 +75,11 @@ const handleAccept = async () => {
|
|||
system: 'checkin',
|
||||
accept: true,
|
||||
})
|
||||
privacyStore.setAccepted(true)
|
||||
modal.value = false
|
||||
} catch (error) {}
|
||||
}
|
||||
|
||||
const handleDecline = () => {
|
||||
modal.value = false
|
||||
}
|
||||
|
||||
const toggleDetails = () => {
|
||||
showDetails.value = !showDetails.value
|
||||
}
|
||||
|
|
@ -103,7 +106,6 @@ const toggleDetails = () => {
|
|||
dense
|
||||
class="absolute-top-right q-ma-sm"
|
||||
v-close-popup
|
||||
@click="handleDecline"
|
||||
/>
|
||||
</q-card-section>
|
||||
|
||||
|
|
@ -237,7 +239,6 @@ const toggleDetails = () => {
|
|||
unelevated
|
||||
no-caps
|
||||
class="action-btn"
|
||||
@click="handleDecline"
|
||||
v-close-popup
|
||||
/>
|
||||
</q-card-actions>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue