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