1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

Fixes types for stat

This commit is contained in:
Amir Raminfar
2021-11-20 19:58:49 -08:00
parent 43e777687d
commit 36cc93dacc
2 changed files with 11 additions and 5 deletions

View File

@@ -18,8 +18,14 @@
</template>
<script lang="ts" setup>
import { ContainerStat } from "@/types/Container";
import { PropType } from "vue";
defineProps({
stat: Object,
stat: {
type: Object as PropType<ContainerStat>,
required: true,
},
state: String,
});
function formatBytes(bytes: number, decimals = 2) {