mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[Profile] Name fix
This commit is contained in:
1 parent
eb7b44fbfe
commit
403f85ac6d
3 files changed
+6
-6
No files matched your search
@@ -29,11 +29,11 @@
|
||||
<v-btn class="menu-dropdown" v-bind="props">
|
||||
<div class="d-flex justify-between align-center">
|
||||
<p class="employee-select-avatar d-flex justify-center align-center" @click.stop="$router.push({name: 'Dashboard - User'})">
|
||||
{{ user.name?.charAt(0) || '' + user.surname?.charAt(0) || '' }}
|
||||
{{ user.firstname.charAt(0) }}{{ user.lastname.charAt(0) }}
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<span class="employee-name ml-4">{{ `${user.name} ${user.surname || ''}` }}</span>
|
||||
<span class="employee-name ml-4">{{ `${user.firstname} ${user.lastname || ''}` }}</span>
|
||||
<v-icon class="ml-3" icon="mdi-chevron-down" size="x-small"></v-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -94,7 +94,8 @@ export default {
|
||||
},
|
||||
|
||||
unmounted() {
|
||||
this.$events.off('on-user-updated')
|
||||
this.$events.off('on-subtask-edited')
|
||||
this.$events.off('on-subtask-deleted')
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="border-bottom py-5 px-5">
|
||||
<h1>Všeobecné informácie</h1>
|
||||
<v-text-field class="w-75" variant="solo" label="Meno" :disabled="true" v-model="user.name"></v-text-field>
|
||||
<v-text-field class="w-75" variant="solo" label="Priezvisko" v-model="user.surname" :disabled="true"></v-text-field>
|
||||
<v-text-field class="w-75" variant="solo" label="Meno" :disabled="true" v-model="user.firstname"></v-text-field>
|
||||
<v-text-field class="w-75" variant="solo" label="Priezvisko" v-model="user.lastname" :disabled="true"></v-text-field>
|
||||
</div>
|
||||
<div class="py-5 px-5 border-bottom">
|
||||
<h1>Pracovná doba</h1>
|
||||
@@ -59,7 +59,6 @@ export default {
|
||||
try {
|
||||
await this.$store.dispatch('auth/updateUserInfo', data)
|
||||
this.$toast.success('Profil bol úspešne zmenený')
|
||||
this.$events.emit('on-user-updated', this.user)
|
||||
} catch (error) {
|
||||
this.$toast.error(error)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user