Files
android_development/tools/ota_analysis/src/components/PartitionDetail.vue
lishutong 9a5b57e68d Seperate the ota_analysis from OTAgui.
The default entry point is /analyseOTA in production enviroment. This is
for the deployment on android.github.io/.

Test: Mannual tested.
Change-Id: Ic77277024b34b67b9964be8cf4f1592cebf5c5e8
2021-07-08 16:05:13 +00:00

60 lines
973 B
Vue

<template>
<p
class="toggle"
@click="toggle()"
>
Total Operations: {{ partition.operations.length }}
<ul
v-if="showOPs"
>
<li
v-for="operation in partition.operations"
:key="operation.dataSha256Hash"
>
<OperationDetail
:operation="operation"
:mapType="opType.mapType"
/>
</li>
</ul>
</p>
</template>
<script>
import { OpType } from '@/services/payload.js'
import OperationDetail from '@/components/OperationDetail.vue'
export default {
components: {
OperationDetail,
},
props: {
partition: {
type: Object,
required: true,
},
},
data() {
return {
showOPs: false,
opType: null,
}
},
created() {
this.opType = new OpType()
},
methods: {
toggle() {
this.showOPs = !this.showOPs
},
},
}
</script>
<style scoped>
.toggle {
display: block;
cursor: pointer;
color: #00c255;
}
</style>