diff --git a/src/components/paginator/CurrentPageReport.vue b/src/components/paginator/CurrentPageReport.vue index 4be4ded7c..90b61bafd 100644 --- a/src/components/paginator/CurrentPageReport.vue +++ b/src/components/paginator/CurrentPageReport.vue @@ -12,22 +12,10 @@ default: '({currentPage} of {totalPages})' } }, - data() { - return { - text: '' - } - }, - watch: { - page() { - this.text = this.template - .replace("{currentPage}", this.page + 1) - .replace("{totalPages}", this.pageCount); - } - }, - mounted() { - this.text = this.template - .replace("{currentPage}", this.page + 1) - .replace("{totalPages}", this.pageCount); + computed: { + text() { + return this.template.replace("{currentPage}", this.page + 1).replace("{totalPages}", this.pageCount); + } } } \ No newline at end of file