This repository has been archived on 2022-10-05. You can view files and clone it, but cannot push or open issues or pull requests.
assetLabelGen/ToolLabels.vue

24 lines
546 B
Vue

<template>
<div>
<ComputerLabel
v-for="asset in assets.rows.filter(t => t.name !== '')"
:asset="asset"
:key="asset.id"
/>
</div>
</template>
<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator';
import snipeit from './snipeit';
import ComputerLabel from './ComputerLabel.vue';
import assets from './computers.json';
@Component({ components: { ComputerLabel } })
export default class ToolLabels extends Vue {
assets: { rows: [snipeit.Hardware]; total: number } = assets;
}
</script>