2021-08-07 08:55:16 +00:00
|
|
|
<template>
|
|
|
|
<div class="">
|
|
|
|
<XAntenna v-if="antenna" :antenna="antenna" @updated="onAntennaUpdated"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-05-25 07:37:15 +00:00
|
|
|
<script lang="ts" setup>
|
2022-06-20 08:38:49 +00:00
|
|
|
import { inject, watch } from 'vue';
|
2021-08-07 08:55:16 +00:00
|
|
|
import XAntenna from './editor.vue';
|
2021-11-11 17:02:25 +00:00
|
|
|
import * as os from '@/os';
|
2022-05-25 07:37:15 +00:00
|
|
|
import { i18n } from '@/i18n';
|
2022-06-20 08:38:49 +00:00
|
|
|
import { useRouter } from '@/router';
|
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
2021-08-07 08:55:16 +00:00
|
|
|
|
2022-06-20 08:38:49 +00:00
|
|
|
const router = useRouter();
|
2022-05-25 07:37:15 +00:00
|
|
|
|
|
|
|
let antenna: any = $ref(null);
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
antennaId: string
|
|
|
|
}>();
|
|
|
|
|
|
|
|
function onAntennaUpdated() {
|
2022-06-20 08:38:49 +00:00
|
|
|
router.push('/my/antennas');
|
2022-05-25 07:37:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
os.api('antennas/show', { antennaId: props.antennaId }).then((antennaResponse) => {
|
|
|
|
antenna = antennaResponse;
|
|
|
|
});
|
|
|
|
|
2022-06-20 08:38:49 +00:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.manageAntennas,
|
2022-12-19 10:01:30 +00:00
|
|
|
icon: 'ti ti-antenna',
|
2021-08-07 08:55:16 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2022-12-27 09:29:39 +00:00
|
|
|
<style lang="scss" scoped>
|
2021-08-07 08:55:16 +00:00
|
|
|
|
|
|
|
</style>
|