small cleanup
This commit is contained in:
parent
634ad0df23
commit
353f07a9ea
1 changed files with 2 additions and 4 deletions
|
|
@ -28,11 +28,8 @@ const UserReportingModal = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isLoggedIn() {
|
|
||||||
return !!useUsersStore().currentUser
|
|
||||||
},
|
|
||||||
isOpen() {
|
isOpen() {
|
||||||
return this.isLoggedIn && this.reportModal.activated
|
return this.loggedIn && this.reportModal.activated
|
||||||
},
|
},
|
||||||
userId() {
|
userId() {
|
||||||
return this.reportModal.userId
|
return this.reportModal.userId
|
||||||
|
|
@ -47,6 +44,7 @@ const UserReportingModal = {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
...mapState(useReportsStore, ['reportModal']),
|
...mapState(useReportsStore, ['reportModal']),
|
||||||
|
...mapState(useUsersStore, ['loggedIn']),
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
userId: 'resetState',
|
userId: 'resetState',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue