2021-08-07 10:55:16 +02:00
|
|
|
<template>
|
|
|
|
<div class="">
|
|
|
|
<XAntenna v-if="antenna" :antenna="antenna" @updated="onAntennaUpdated"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-05-25 09:37:15 +02:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { watch } from 'vue';
|
2021-08-07 10:55:16 +02:00
|
|
|
import XAntenna from './editor.vue';
|
2021-11-11 18:02:25 +01:00
|
|
|
import * as symbols from '@/symbols';
|
|
|
|
import * as os from '@/os';
|
2022-05-25 09:37:15 +02:00
|
|
|
import { MisskeyNavigator } from '@/scripts/navigate';
|
|
|
|
import { i18n } from '@/i18n';
|
2021-08-07 10:55:16 +02:00
|
|
|
|
2022-05-25 09:37:15 +02:00
|
|
|
const nav = new MisskeyNavigator();
|
|
|
|
|
|
|
|
let antenna: any = $ref(null);
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
antennaId: string
|
|
|
|
}>();
|
|
|
|
|
|
|
|
function onAntennaUpdated() {
|
|
|
|
nav.push('/my/antennas');
|
|
|
|
}
|
|
|
|
|
|
|
|
os.api('antennas/show', { antennaId: props.antennaId }).then((antennaResponse) => {
|
|
|
|
antenna = antennaResponse;
|
|
|
|
});
|
|
|
|
|
|
|
|
defineExpose({
|
|
|
|
[symbols.PAGE_INFO]: {
|
|
|
|
title: i18n.ts.manageAntennas,
|
|
|
|
icon: 'fas fa-satellite',
|
2021-08-07 10:55:16 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
</style>
|