diff --git a/src/pages/Worker/Card/WorkerDescriptorDialog.vue b/src/pages/Worker/Card/WorkerDescriptorDialog.vue
new file mode 100644
index 000000000..9c55c474f
--- /dev/null
+++ b/src/pages/Worker/Card/WorkerDescriptorDialog.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
diff --git a/src/pages/Worker/Card/WorkerSummary.vue b/src/pages/Worker/Card/WorkerSummary.vue
index e39027dd6..ebb0c0403 100644
--- a/src/pages/Worker/Card/WorkerSummary.vue
+++ b/src/pages/Worker/Card/WorkerSummary.vue
@@ -2,12 +2,15 @@
import { ref, onMounted, computed } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
+import { useQuasar } from 'quasar';
import axios from 'axios';
+import workerDescriptorDialog from './WorkerDescriptorDialog.vue';
onMounted(() => fetch());
const route = useRoute();
const { t } = useI18n();
+const quasar = useQuasar();
t == t;
@@ -70,6 +73,15 @@ function sipExtension() {
if (worker.value.sip) return worker.value.sip.extension;
return '-';
}
+
+function openDescriptorDialog(id) {
+ quasar.dialog({
+ component: workerDescriptorDialog,
+ componentProps: {
+ id,
+ },
+ });
+}
@@ -120,22 +132,16 @@ function sipExtension() {
{{ worker.user.email }}
-
-
+
+
-
+
{{ t('worker.summary.boss') }}
-
- {{ worker.boss.name == '' ? t('worker.summary.noBoss') : worker.boss.name }}
-
-
-
+
+ {{ worker.boss.name }}
+