refactor: refs #6452 remove WorkerPBX component and its routing #1084
|
@ -1,33 +0,0 @@
|
||||||
<script setup>
|
|
||||||
import { useI18n } from 'vue-i18n';
|
|
||||||
import FormModel from 'src/components/FormModel.vue';
|
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
|
||||||
const { t } = useI18n();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<FormModel
|
|
||||||
model="WorkerPbx"
|
|
||||||
:url="`Workers/${$route.params.id}/sip`"
|
|
||||||
url-update="Sips"
|
|
||||||
:mapper="
|
|
||||||
({ userFk, extension }) => ({
|
|
||||||
userFk,
|
|
||||||
extension,
|
|
||||||
})
|
|
||||||
"
|
|
||||||
auto-load
|
|
||||||
>
|
|
||||||
<template #form="{ data }">
|
|
||||||
<VnInput
|
|
||||||
:label="$t('worker.summary.sipExtension')"
|
|
||||||
v-model="data.extension"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</FormModel>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<i18n>
|
|
||||||
es:
|
|
||||||
It must be a 4-digit number and must not end in 00: Debe ser un número de 4 cifras y no terminar en 00
|
|
||||||
</i18n>
|
|
|
@ -12,7 +12,6 @@ const workerCard = {
|
||||||
'WorkerNotes',
|
'WorkerNotes',
|
||||||
'WorkerPda',
|
'WorkerPda',
|
||||||
'WorkerNotificationsManager',
|
'WorkerNotificationsManager',
|
||||||
'WorkerPBX',
|
|
||||||
'WorkerLog',
|
'WorkerLog',
|
||||||
'WorkerCalendar',
|
'WorkerCalendar',
|
||||||
'WorkerDms',
|
'WorkerDms',
|
||||||
|
@ -113,15 +112,6 @@ const workerCard = {
|
||||||
component: () =>
|
component: () =>
|
||||||
import('src/pages/Worker/Card/WorkerNotificationsManager.vue'),
|
import('src/pages/Worker/Card/WorkerNotificationsManager.vue'),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: 'pbx',
|
|
||||||
name: 'WorkerPBX',
|
|
||||||
meta: {
|
|
||||||
title: 'pbx',
|
|
||||||
icon: 'vn:pbx',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Worker/Card/WorkerPBX.vue'),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'WorkerDms',
|
name: 'WorkerDms',
|
||||||
path: 'dms',
|
path: 'dms',
|
||||||
|
|
Loading…
Reference in New Issue