main
vue 20 lines 679 Bytes
Raw
1 <template>
2 <n-card title="Change Password">
3 <p class="text-secondary mb-4">Update your account password to keep your profile secure.</p>
4 <n-button type="primary" :loading @click="openChangePasswordModal">Change Password</n-button>
5 <ChangePasswordModal v-model:open="showChangePasswordModal" v-model:loading="loading" />
6 </n-card>
7 </template>
8
9 <script lang="ts" setup>
10 import { NButton, NCard } from "naive-ui"
11 import { ref } from "vue"
12 import ChangePasswordModal from "@/components/auth/ChangePasswordModal.vue"
13
14 const showChangePasswordModal = ref(false)
15 const loading = ref(false)
16
17 function openChangePasswordModal() {
18 showChangePasswordModal.value = true
19 }
20 </script>