-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hello everyone!
I want to create a custom close button with its own message as native alert. How is this implemented in a component <ClosingConfirmation>
I have this code. But I don't get the native alert, I only get the app closing :(
Please, I need help!
<script setup>
import {
useWebAppClosingConfirmation
} from 'vue-tg'
const { enableClosingConfirmation, isClosingConfirmationEnabled } = useWebAppClosingConfirmation();
enableClosingConfirmation();
function close() {
useWebApp().close();
}
</script>
<template>
<button type="button" class="nav-link text-danger px-4 py-3 d-flex align-items-center" @click="logout()">
close app
</button>
</template>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels