🐛 Fix nuxi build
This commit is contained in:
parent
1a1dd92808
commit
013a629ad2
@ -13,16 +13,17 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { VolumeMonitoringConfig } from '../MonitoringConfig';
|
import type { VolumeMonitoringConfig } from '../MonitoringConfig';
|
||||||
import MonitoredPodComponent from './VolumeMonitoredPodComponent.vue';
|
import MonitoredPodComponent from './VolumeMonitoredPodComponent.vue';
|
||||||
import { MonitoredPod } from '../MonitoredResource';
|
import { MonitoredResource } from '../MonitoredResource';
|
||||||
|
import type { Pod } from '~/classes/Pod';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
monitoring: VolumeMonitoringConfig
|
monitoring: VolumeMonitoringConfig
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const pods: Ref<MonitoredPod[] | undefined> = ref(undefined);
|
const pods: Ref<MonitoredResource<Pod>[] | undefined> = ref(undefined);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
MonitoredPod.get(props.monitoring.id, (_pods: MonitoredPod[]) => {
|
MonitoredResource.getMonitorings(props.monitoring.id, (_pods: MonitoredResource<Pod>[]) => {
|
||||||
pods.value = _pods;
|
pods.value = _pods;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user