change tab to dms when clicking on "message"

This commit is contained in:
supertiger1234 2019-09-19 16:29:38 +01:00
parent 2ffe99be9b
commit e85d30dbdc

View file

@ -58,6 +58,7 @@
</div>
</template>
<script>
import {bus} from '@/main'
import config from "@/config.js";
import Spinner from "@/components/Spinner.vue";
import profilePicture from "@/components/ProfilePictureTemplate.vue";
@ -104,6 +105,7 @@ export default {
);
},
openChat() {
bus.$emit('changeTab', 1)
this.$store.dispatch("openChat", {
uniqueID: this.uniqueID,
channelName: this.user.username