- Frontend restriction shared page

This commit is contained in:
Čarodej
2022-01-06 11:05:49 +01:00
parent 05f6023053
commit 8d53ed1531
17 changed files with 188 additions and 36 deletions

View File

@@ -8,7 +8,7 @@
<home-icon size="17"/>
</div>
<div class="label">
{{ $t('sidebar.home') }}
{{ $t('Home') }}
</div>
</a>
</div>
@@ -75,7 +75,13 @@ export default {
},
methods: {
goHome() {
this.$router.replace({name: 'Public', params: {token: this.$route.params.token, id: this.sharedDetail.item_id}})
this.$router.replace({
name: 'Public',
params: {
token: this.sharedDetail.data.attributes.token,
id: this.sharedDetail.data.attributes.item_id
}
})
},
dragLeave() {
this.area = false