client: fix lints in my-antennas pages
This commit is contained in:
parent
59428a49ce
commit
356d226171
2 changed files with 4 additions and 13 deletions
|
@ -5,7 +5,6 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { inject } from 'vue';
|
||||
import XAntenna from './editor.vue';
|
||||
import { i18n } from '@/i18n';
|
||||
import { definePageMetadata } from '@/scripts/page-metadata';
|
||||
|
@ -27,14 +26,10 @@ let draft = $ref({
|
|||
notify: false,
|
||||
});
|
||||
|
||||
function onAntennaCreated() {
|
||||
function onAntennaCreated(): void {
|
||||
router.push('/my/antennas');
|
||||
}
|
||||
|
||||
const headerActions = $computed(() => []);
|
||||
|
||||
const headerTabs = $computed(() => []);
|
||||
|
||||
definePageMetadata({
|
||||
title: i18n.ts.manageAntennas,
|
||||
icon: 'fas fa-satellite',
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { inject, watch } from 'vue';
|
||||
import { Antenna } from 'foundkey-js/built/entities';
|
||||
import XAntenna from './editor.vue';
|
||||
import * as os from '@/os';
|
||||
import { i18n } from '@/i18n';
|
||||
|
@ -14,13 +14,13 @@ import { definePageMetadata } from '@/scripts/page-metadata';
|
|||
|
||||
const router = useRouter();
|
||||
|
||||
let antenna: any = $ref(null);
|
||||
let antenna: Antenna | null = $ref(null);
|
||||
|
||||
const props = defineProps<{
|
||||
antennaId: string
|
||||
}>();
|
||||
|
||||
function onAntennaUpdated() {
|
||||
function onAntennaUpdated(): void {
|
||||
router.push('/my/antennas');
|
||||
}
|
||||
|
||||
|
@ -28,10 +28,6 @@ os.api('antennas/show', { antennaId: props.antennaId }).then((antennaResponse) =
|
|||
antenna = antennaResponse;
|
||||
});
|
||||
|
||||
const headerActions = $computed(() => []);
|
||||
|
||||
const headerTabs = $computed(() => []);
|
||||
|
||||
definePageMetadata({
|
||||
title: i18n.ts.manageAntennas,
|
||||
icon: 'fas fa-satellite',
|
||||
|
|
Loading…
Reference in a new issue