* enhance(frontend): デッキのアンテナ・リスト選択画面からそれぞれを新規作成できるように * Update Changelog * fix * fix * lint * add story * typo ねぼけていた * Update antenna-column.vue --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
36 lines
916 B
Vue
36 lines
916 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<MkStickyContainer>
|
|
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
|
|
|
|
<MkAntennaEditor @created="onAntennaCreated"/>
|
|
</MkStickyContainer>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { computed } from 'vue';
|
|
import { i18n } from '@/i18n.js';
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
|
import { antennasCache } from '@/cache.js';
|
|
import { useRouter } from '@/router/supplier.js';
|
|
import MkAntennaEditor from '@/components/MkAntennaEditor.vue';
|
|
|
|
const router = useRouter();
|
|
|
|
function onAntennaCreated() {
|
|
antennasCache.delete();
|
|
router.push('/my/antennas');
|
|
}
|
|
|
|
const headerActions = computed(() => []);
|
|
const headerTabs = computed(() => []);
|
|
|
|
definePageMetadata(() => ({
|
|
title: i18n.ts.createAntenna,
|
|
icon: 'ti ti-antenna',
|
|
}));
|
|
</script>
|