2022-09-09 20:41:18 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<p>
|
|
|
|
There are <strong>{{ totalProducts }}</strong> products in total in this list.
|
|
|
|
</p>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex justify-end">
|
2022-12-08 12:26:57 +00:00
|
|
|
<Button autofocus type="button" label="Close" @click="closeDialog"></Button>
|
2022-09-09 20:41:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
inject: ['dialogRef'],
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
totalProducts: 0
|
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.totalProducts = this.dialogRef.data.totalProducts;
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
closeDialog() {
|
|
|
|
this.dialogRef.close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|