mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-12-03 23:28:00 -07:00
43 lines
903 B
Vue
43 lines
903 B
Vue
<template>
|
|
<div class="">
|
|
<XAntenna v-if="antenna" :antenna="antenna" @updated="onAntennaUpdated"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { inject, watch } from 'vue';
|
|
import XAntenna from './editor.vue';
|
|
import * as os from '@/os';
|
|
import { i18n } from '@/i18n';
|
|
import { useRouter } from '@/router';
|
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
|
|
|
const router = useRouter();
|
|
|
|
let antenna: any = $ref(null);
|
|
|
|
const props = defineProps<{
|
|
antennaId: string
|
|
}>();
|
|
|
|
function onAntennaUpdated() {
|
|
router.push('/my/antennas');
|
|
}
|
|
|
|
os.api('antennas/show', { antennaId: props.antennaId }).then((antennaResponse) => {
|
|
antenna = antennaResponse;
|
|
});
|
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
definePageMetadata({
|
|
title: i18n.ts.manageAntennas,
|
|
icon: 'ph-flying-saucer-bold ph-lg',
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
</style>
|