Client - add password reset in users admin

This commit is contained in:
Sam
2022-03-13 17:41:37 +01:00
parent ce680b0d3e
commit 6371fb0622
11 changed files with 108 additions and 13 deletions

View File

@ -2,13 +2,19 @@
<div id="user" class="view" v-if="user.username">
<UserHeader :user="user" />
<div class="box">
<UserInfos :user="user" :from-admin="true" />
<UserInfos :user="user" :from-admin="fromAdmin" />
</div>
</div>
</template>
<script setup lang="ts">
import { ComputedRef, computed, onBeforeMount, onBeforeUnmount } from 'vue'
import {
ComputedRef,
computed,
onBeforeMount,
onBeforeUnmount,
toRefs,
} from 'vue'
import { useRoute } from 'vue-router'
import UserHeader from '@/components/User/ProfileDisplay/UserHeader.vue'
@ -17,6 +23,12 @@
import { IUserProfile } from '@/types/user'
import { useStore } from '@/use/useStore'
interface Props {
fromAdmin: boolean
}
const props = defineProps<Props>()
const { fromAdmin } = toRefs(props)
const route = useRoute()
const store = useStore()