Display & set the public page url

parent dc0e78d7
...@@ -233,6 +233,7 @@ ...@@ -233,6 +233,7 @@
this.loading = false; this.loading = false;
this.page = response.data.data; this.page = response.data.data;
this.tags = response.data.data.tags; this.tags = response.data.data.tags;
$('.publicUrl').attr('href', this.page.urls.public_url).show();
}) })
.catch(error => { .catch(error => {
}) })
...@@ -250,6 +251,9 @@ ...@@ -250,6 +251,9 @@
if (this.$route.params.pageId !== undefined) { if (this.$route.params.pageId !== undefined) {
this.fetchPage(); this.fetchPage();
} }
},
destroyed() {
$('.publicUrl').hide();
} }
} }
</script> </script>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment