From 19d86effd247a89ae7b34bf605d630168c38c5e8 Mon Sep 17 00:00:00 2001 From: SalleeMatthew <132789789+SalleeMatthew@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:55:41 -0600 Subject: [PATCH] Update Chat.vue Fix what buttons come up in the public places for admin --- spa/src/components/Chat.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/spa/src/components/Chat.vue b/spa/src/components/Chat.vue index 9c048d12..d128d1e1 100644 --- a/spa/src/components/Chat.vue +++ b/spa/src/components/Chat.vue @@ -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; - } - } } }