client: fix lints in my-antennas pages
All checks were successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Norm 2022-09-26 02:31:44 -04:00
parent 59428a49ce
commit 356d226171
Signed by: norm
GPG key ID: 7123E30E441E80DE
2 changed files with 4 additions and 13 deletions

View file

@ -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',

View file

@ -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',