File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 44
55 <Iconify icon =" mdi:shield-account" v-if =" hasRole('Admin')" class =" w-36 h-36 text-gray-700 inline-block" />
66 <Iconify icon =" mdi:account-circle" v-else class =" w-36 h-36 text-gray-700 inline-block" />
7- <div >{{ ( user as AuthenticateResponse) .displayName }}</div >
8- <div >{{ ( user as AuthenticateResponse) .userName }}</div >
7+ <div >{{ user! .displayName }}</div >
8+ <div >{{ user! .userName }}</div >
99 <div class =" mt-2" >
1010 <span v-for =" role in roles"
1111 :key =" role"
2626<script setup lang="ts">
2727import { useAuth } from " @servicestack/vue"
2828import { signout } from " @/lib/auth"
29- import { useHead } from " @unhead/vue"
30- import type { AuthenticateResponse } from " @/lib/dtos"
31-
32- useHead ({ title: ' My Profile' })
3329
3430const { user, hasRole } = useAuth ()
3531const roles = user .value ?.roles ?? []
You can’t perform that action at this time.
0 commit comments