24 lines
546 B
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>
|