mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-25 05:52:23 +00:00
duration of scan
This commit is contained in:
@@ -10,6 +10,11 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template #cell(duration)="data">
|
||||
<b-badge v-if="data.item.completed" variant="primary">{{ data.value }} seconds</b-badge>
|
||||
<b-badge v-if="!data.item.completed" variant="secondary">pending</b-badge>
|
||||
</template>
|
||||
|
||||
<template #cell(threats)="data">
|
||||
<div class="text-success" v-if="data.item.succeeded && !data.item.threats.length">No threats have been detected</div>
|
||||
<div class="text-danger" v-if="data.item.succeeded === false">Scan failed to complete due to the error or timeout</div>
|
||||
@@ -52,7 +57,8 @@ export default Vue.extend({
|
||||
flattenedData(): ScanResultEntryFlattened[] {
|
||||
return Object
|
||||
.entries((this.data as ScanResult).results)
|
||||
.map(([k, v]) => new ScanResultEntryFlattened(k, v.completed, v.succeeded, v.threats))
|
||||
.map(([k, v]) => new ScanResultEntryFlattened(
|
||||
k, v.completed, v.succeeded, v.duration, v.threats))
|
||||
}
|
||||
},
|
||||
|
||||
@@ -63,6 +69,7 @@ export default Vue.extend({
|
||||
fields: [
|
||||
{key: 'id', label: 'Backend'},
|
||||
{key: 'completed', label: 'Completed'},
|
||||
{key: 'duration', label: 'Duration'},
|
||||
{key: 'threats', label: 'Threats'},
|
||||
],
|
||||
|
||||
|
Reference in New Issue
Block a user