1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-25 20:18:18 +09:00
MisskeyIO/packages/frontend/src/pages/my-antennas/create.vue

45 lines
806 B
Vue
Raw Normal View History

2021-08-07 17:55:16 +09:00
<template>
<div class="geegznzt">
<XAntenna :antenna="draft" @created="onAntennaCreated"/>
</div>
</template>
<script lang="ts" setup>
2021-08-07 17:55:16 +09:00
import XAntenna from './editor.vue';
import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata';
import { useRouter } from '@/router';
const router = useRouter();
2021-08-07 17:55:16 +09:00
let draft = $ref({
name: '',
src: 'all',
userListId: null,
users: [],
keywords: [],
excludeKeywords: [],
withReplies: false,
caseSensitive: false,
withFile: false,
notify: false,
});
2021-08-07 17:55:16 +09:00
function onAntennaCreated() {
router.push('/my/antennas');
}
2021-08-07 17:55:16 +09:00
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.manageAntennas,
icon: 'ti ti-antenna',
2021-08-07 17:55:16 +09:00
});
</script>
<style lang="scss" scoped>
2021-08-07 17:55:16 +09:00
</style>