2023-07-27 14:31:52 +09:00
|
|
|
<!--
|
2024-02-13 15:59:27 +00:00
|
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 14:31:52 +09:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
-->
|
|
|
|
|
|
2021-08-07 17:55:16 +09:00
|
|
|
<template>
|
2024-07-30 13:11:06 +09:00
|
|
|
<MkStickyContainer>
|
|
|
|
|
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
|
|
|
|
|
|
|
|
|
|
<MkAntennaEditor @created="onAntennaCreated"/>
|
|
|
|
|
</MkStickyContainer>
|
2021-08-07 17:55:16 +09:00
|
|
|
</template>
|
|
|
|
|
|
2022-01-15 16:40:15 +09:00
|
|
|
<script lang="ts" setup>
|
2024-07-30 13:11:06 +09:00
|
|
|
import { computed } from 'vue';
|
2023-09-19 16:37:43 +09:00
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
2023-10-16 15:06:00 +09:00
|
|
|
import { antennasCache } from '@/cache.js';
|
2024-01-30 21:07:34 +09:00
|
|
|
import { useRouter } from '@/router/supplier.js';
|
2024-07-30 13:11:06 +09:00
|
|
|
import MkAntennaEditor from '@/components/MkAntennaEditor.vue';
|
2022-06-20 17:38:49 +09:00
|
|
|
|
|
|
|
|
const router = useRouter();
|
2021-08-07 17:55:16 +09:00
|
|
|
|
2022-01-15 16:40:15 +09:00
|
|
|
function onAntennaCreated() {
|
2023-07-10 15:55:10 +09:00
|
|
|
antennasCache.delete();
|
2022-01-15 16:40:15 +09:00
|
|
|
router.push('/my/antennas');
|
|
|
|
|
}
|
2021-08-07 17:55:16 +09:00
|
|
|
|
2024-07-30 13:11:06 +09:00
|
|
|
const headerActions = computed(() => []);
|
|
|
|
|
const headerTabs = computed(() => []);
|
|
|
|
|
|
2024-02-16 16:17:09 +09:00
|
|
|
definePageMetadata(() => ({
|
2024-07-30 13:11:06 +09:00
|
|
|
title: i18n.ts.createAntenna,
|
2022-12-19 19:01:30 +09:00
|
|
|
icon: 'ti ti-antenna',
|
2024-02-16 16:17:09 +09:00
|
|
|
}));
|
2021-08-07 17:55:16 +09:00
|
|
|
</script>
|