Skip to content

Commit

Permalink
frontend: user profile
Browse files Browse the repository at this point in the history
change password, update profile button click function call
  • Loading branch information
rkshaon committed Jul 23, 2024
1 parent 1d7ba61 commit 2e1570c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions frontend/src/components/admin/page/AdminProfilePage.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<template>
<div class="container mt-5">
<AdminProfileCardComponent :profileData="profileData" class="mb-3" />
<button class="btn btn-warning">Change Password</button>
<button class="btn btn-info">Edit Profile</button>
<div class="row">
<div class="col-4">
<AdminProfileCardComponent :profileData="profileData" class="mb-3" />
</div>
</div>
<button type="button" class="btn btn-warning" @click="showChangePasswordModal">Change Password</button>
<button type="button" class="btn btn-info" @click="showUpdateProfileModal">Edit Profile</button>
</div>
</template>

Expand All @@ -28,6 +32,14 @@ export default {
},
methods: {
...mapActions('user', ['fetchUserProfile']),
showChangePasswordModal() {
console.log('change password modal clicked');
},
showUpdateProfileModal() {
console.log('update profile clicked.');
},
},
created() {
this.fetchUserProfile();
Expand Down

0 comments on commit 2e1570c

Please sign in to comment.