From b0178915080ff8558a7ee31110d7cbffb6a7bf2f Mon Sep 17 00:00:00 2001 From: Pau Navarro Date: Tue, 20 Dec 2022 09:55:47 +0100 Subject: [PATCH] refactor to follow current styles --- src/pages/Worker/Card/WorkerDescriptor.vue | 15 ------- src/pages/Worker/Card/WorkerSummary.vue | 47 ++-------------------- src/pages/Worker/WorkerList.vue | 10 +++-- src/router/modules/index.js | 4 +- src/router/modules/worker.js | 10 ++--- src/stores/useNavigationStore.js | 2 +- 6 files changed, 18 insertions(+), 70 deletions(-) diff --git a/src/pages/Worker/Card/WorkerDescriptor.vue b/src/pages/Worker/Card/WorkerDescriptor.vue index 27c15b6fb..ad23f732b 100644 --- a/src/pages/Worker/Card/WorkerDescriptor.vue +++ b/src/pages/Worker/Card/WorkerDescriptor.vue @@ -80,45 +80,30 @@ function getWorkerAvatar() { - - - {{ t('worker.card.name') }} {{ worker.user.nickname }} - - - {{ t('worker.card.email') }} {{ worker.user.email }} - - - {{ t('worker.list.department') }} {{ worker.department.department.name }} - - - {{ t('worker.card.phone') }} {{ worker.phone }} - - - {{ t('worker.summary.sipExtension') }} {{ sipExtension() }} diff --git a/src/pages/Worker/Card/WorkerSummary.vue b/src/pages/Worker/Card/WorkerSummary.vue index fdf6cf9d9..1172c99b8 100644 --- a/src/pages/Worker/Card/WorkerSummary.vue +++ b/src/pages/Worker/Card/WorkerSummary.vue @@ -3,7 +3,6 @@ import { ref, onMounted, computed, onUpdated } from 'vue'; import { useRoute } from 'vue-router'; import { useI18n } from 'vue-i18n'; import { useQuasar } from 'quasar'; -import { useSession } from 'src/composables/useSession'; import axios from 'axios'; import workerDescriptorDialog from './WorkerDescriptorDialog.vue'; @@ -14,7 +13,6 @@ onUpdated(() => fetch()); const route = useRoute(); const { t } = useI18n(); const quasar = useQuasar(); -const { getToken } = useSession(); t == t; @@ -86,11 +84,6 @@ function openDescriptorDialog(id) { }, }); } - -function getWorkerAvatar() { - const token = getToken(); - return `/api/Images/user/160x160/${worker.value.boss.id}/download?access_token=${token}`; -}