Skip to content

Commit

Permalink
Update Chat.vue
Browse files Browse the repository at this point in the history
Fix what buttons come up in the public places for admin
  • Loading branch information
SalleeMatthew authored and smile0711 committed Jan 1, 2025
1 parent 74203c3 commit 19d86ef
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions spa/src/components/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -606,20 +606,21 @@ export default Vue.extend({
this.menuBuy = true;
}
if(this.memberId === this.$store.data.user.id){
this.menuTake = true;
this.menuDestroy = true;
}
if(this.canModify && this.$store.data.place.type !== 'shop' ||
this.memberId === this.$store.data.user.id
){
this.menuTake = true;
}
if(this.$store.data.view3d){
this.menuBeamTo = true;
if(this.$store.data.user.id === this.memberId){
if(
this.$store.data.user.id === this.memberId ||
this.canModify
){
this.menuMove = true;
}
if(this.canModify){
this.menuMove = true;
if(this.$store.data.place.type !== 'shop'){
this.menuTake = true;
}
}
}
}
Expand Down

0 comments on commit 19d86ef

Please sign in to comment.