diff --git a/src/components/auth/ProfileDialog.vue b/src/components/auth/ProfileDialog.vue index 39be3aa..124dac3 100644 --- a/src/components/auth/ProfileDialog.vue +++ b/src/components/auth/ProfileDialog.vue @@ -4,6 +4,7 @@ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } f import { Button } from '@/components/ui/button' import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { Badge } from '@/components/ui/badge' +import { LogoutConfirmDialog } from '@/components/ui/LogoutConfirmDialog' import { User, LogOut, Settings, Key, Wallet, ExternalLink } from 'lucide-vue-next' import { auth } from '@/composables/useAuth' import { toast } from 'vue-sonner' @@ -125,10 +126,10 @@ function handleClose() { Change Password - + Logout - + diff --git a/src/components/auth/UserProfile.vue b/src/components/auth/UserProfile.vue index b06b5e7..c2437d7 100644 --- a/src/components/auth/UserProfile.vue +++ b/src/components/auth/UserProfile.vue @@ -4,6 +4,7 @@ import { useRouter } from 'vue-router' import { Button } from '@/components/ui/button' import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { Badge } from '@/components/ui/badge' +import { LogoutConfirmDialog } from '@/components/ui/LogoutConfirmDialog' import { User, LogOut, Settings } from 'lucide-vue-next' import { auth } from '@/composables/useAuth' import { toast } from 'vue-sonner' @@ -58,10 +59,10 @@ function handleLogout() { Settings - + Logout - + diff --git a/src/components/layout/Navbar.vue b/src/components/layout/Navbar.vue index 9d60c3a..72452a4 100644 --- a/src/components/layout/Navbar.vue +++ b/src/components/layout/Navbar.vue @@ -11,6 +11,7 @@ import LanguageSwitcher from '@/components/LanguageSwitcher.vue' import LoginDialog from '@/components/auth/LoginDialog.vue' import ProfileDialog from '@/components/auth/ProfileDialog.vue' import CurrencyDisplay from '@/components/ui/CurrencyDisplay.vue' +import { LogoutConfirmDialog } from '@/components/ui/LogoutConfirmDialog' import { auth } from '@/composables/useAuth' import { useMarketPreloader } from '@/composables/useMarketPreloader' import { nostrChat } from '@/composables/useNostrChat' @@ -154,9 +155,11 @@ const handleLogout = async () => { Relay Hub Status - - - Logout + + + + Logout + @@ -239,11 +242,10 @@ const handleLogout = async () => { Relay Hub Status - + Logout - + diff --git a/src/components/ui/LogoutConfirmDialog.vue b/src/components/ui/LogoutConfirmDialog.vue new file mode 100644 index 0000000..ee382c7 --- /dev/null +++ b/src/components/ui/LogoutConfirmDialog.vue @@ -0,0 +1,80 @@ + + + + + + + + + Logout + + + + + + + + + + + + + + Confirm Logout + + + Are you sure you want to logout? You will need to log in again to access your account. + + + + + + + Cancel + + + + Logout + + + + + diff --git a/src/components/ui/LogoutConfirmDialog/LogoutConfirmDialog.vue b/src/components/ui/LogoutConfirmDialog/LogoutConfirmDialog.vue new file mode 100644 index 0000000..97e9b13 --- /dev/null +++ b/src/components/ui/LogoutConfirmDialog/LogoutConfirmDialog.vue @@ -0,0 +1,80 @@ + + + + + + + + + Logout + + + + + + + + + + + + + + Confirm Logout + + + Are you sure you want to logout? You will need to log in again to access your account. + + + + + + + Cancel + + + + Logout + + + + + diff --git a/src/components/ui/LogoutConfirmDialog/index.ts b/src/components/ui/LogoutConfirmDialog/index.ts new file mode 100644 index 0000000..90fe6c6 --- /dev/null +++ b/src/components/ui/LogoutConfirmDialog/index.ts @@ -0,0 +1 @@ +export { default as LogoutConfirmDialog } from './LogoutConfirmDialog.vue'