mirror of https://github.com/rancher/dashboard.git
34 lines
523 B
Vue
34 lines
523 B
Vue
<script>
|
|
import { get } from '@shell/utils/object';
|
|
export default {
|
|
props: {
|
|
value: {
|
|
type: [String, Number],
|
|
default: null,
|
|
},
|
|
row: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
},
|
|
|
|
computed: {
|
|
hasResults() {
|
|
return !!get(this.row, 'status.summary');
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="hasResults">
|
|
<span v-if="value || value === 0">
|
|
{{ value }}
|
|
</span>
|
|
<span
|
|
v-else
|
|
class="text-muted"
|
|
>—</span>
|
|
</div>
|
|
</template>
|