2021-08-07 02:55:16 -06:00
|
|
|
<template>
|
|
|
|
<div class="">
|
|
|
|
<XAntenna v-if="antenna" :antenna="antenna" @updated="onAntennaUpdated"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-05-25 01:37:15 -06:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { watch } from 'vue';
|
2021-08-07 02:55:16 -06:00
|
|
|
import XAntenna from './editor.vue';
|
2021-11-11 10:02:25 -07:00
|
|
|
import * as symbols from '@/symbols';
|
|
|
|
import * as os from '@/os';
|
2022-05-25 01:37:15 -06:00
|
|
|
import { MisskeyNavigator } from '@/scripts/navigate';
|
|
|
|
import { i18n } from '@/i18n';
|
2021-08-07 02:55:16 -06:00
|
|
|
|
2022-05-25 01:37:15 -06: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 02:55:16 -06:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
</style>
|