Updated Assessor page
This commit is contained in:
parent
67cb8dde43
commit
165c8dabe7
2 changed files with 11 additions and 2 deletions
|
|
@ -51,3 +51,6 @@
|
|||
font-size: 1.75rem
|
||||
font-weight: 700
|
||||
padding: 0.5rem 1rem
|
||||
|
||||
.profile
|
||||
cursor: pointer
|
||||
|
|
|
|||
|
|
@ -222,7 +222,6 @@ export default () => {
|
|||
}
|
||||
|
||||
const updateOp = async () => {
|
||||
console.log(applicationId())
|
||||
try {
|
||||
await ofetch(API + 'update-opprinted-electrical', {
|
||||
method: 'POST',
|
||||
|
|
@ -326,6 +325,11 @@ export default () => {
|
|||
navigate('/')
|
||||
}
|
||||
|
||||
const gotoProfile = async () => {
|
||||
sessionStorage.setItem('name', employeeName())
|
||||
navigate('/profile')
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
const logged = await checkLogged()
|
||||
|
||||
|
|
@ -357,7 +361,9 @@ export default () => {
|
|||
|
||||
<Row content="left" gap={1}>
|
||||
<Box curved thickness={0} padding="1.25rem 2.25rem" background="#0f131d56">
|
||||
<span class="name">{employeeName()}</span>
|
||||
<span class="profile" onClick={gotoProfile}>
|
||||
{employeeName()}
|
||||
</span>
|
||||
</Box>
|
||||
<Clickable onClick={logout}>
|
||||
<Row gap={0.5}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue