Skip to content

Commit 8ef19c5

Browse files
committed
Update profile.vue
1 parent 4162819 commit 8ef19c5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

MyApp.Client/src/pages/profile.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
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"
@@ -26,10 +26,6 @@
2626
<script setup lang="ts">
2727
import { useAuth } from "@servicestack/vue"
2828
import { signout } from "@/lib/auth"
29-
import { useHead } from "@unhead/vue"
30-
import type { AuthenticateResponse } from "@/lib/dtos"
31-
32-
useHead({ title: 'My Profile' })
3329
3430
const { user, hasRole } = useAuth()
3531
const roles = user.value?.roles ?? []

0 commit comments

Comments
 (0)