diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index 742376e..8941b1d 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/src/components/app/News.vue b/src/components/app/News.vue index f1bca39..7a8d1c9 100644 --- a/src/components/app/News.vue +++ b/src/components/app/News.vue @@ -92,23 +92,26 @@ export default { .change-log { background: rgba(0, 0, 0, 0.137); padding: 20px; - flex: 1; overflow-y: auto; + max-width: 700px; + margin: auto; } .plan-list { color: white; } .date { - text-align: left; - margin-right: 50px; + text-align: right; + font-size: 19px; + margin-right: 10px; color: rgba(255, 255, 255, 0.692); } .changes-title { - font-size: 20px; + font-size: 30px; color: rgba(255, 255, 255, 0.979); - margin-bottom: 10px; - margin-top: 10px; + text-align: center; font-weight: bold; + margin-top: -5px; + margin-bottom: 10px; } @media (max-width: 840px) { diff --git a/src/components/app/relationships/FriendsTemplate.vue b/src/components/app/relationships/FriendsTemplate.vue index 8a2ef1f..1bbf6f4 100644 --- a/src/components/app/relationships/FriendsTemplate.vue +++ b/src/components/app/relationships/FriendsTemplate.vue @@ -25,38 +25,19 @@ import {bus} from '@/main' export default { props: ['username', 'tag', 'channelID', 'uniqueID', 'recipient'], methods: { - async getMessages() { - const {ok, error, result} = await messagesService.get(this.$props.channelID); - if ( ok ) { - this.$store.dispatch('messages', {channelID: result.data.channelID, messages: result.data.messages}); - } else { - // TODO handle this - console.log (error.response) - } - }, + async openChat(event) { if (event.target.classList[0] === "profile-picture") return; bus.$emit('closeLeftMenu'); - // dismiss notification if exists + // dismiss notification if exists + // TODO move this into openchat or something :/ if (this.notifications && this.notifications >= 1 && document.hasFocus()) { this.$socket.emit('notification:dismiss', {channelID: this.channelID}); } - // this.$store.dispatch('openChat', { - // channelID: this.channelID, - // channelName: this.channel - // }) - this.$store.dispatch('selectedChannelID', this.$props.channelID); - this.$store.dispatch('setChannelName', this.recipient.username); - if (this.$store.getters.messages[this.$props.channelID]) return; - if (this.$store.getters.channels[this.$props.channelID] && !this.$store.getters.messages[this.$props.channelID]) return this.getMessages(); - const {ok, error, result} = await channelService.post(this.$props.channelID); - if ( ok ) { - this.$store.dispatch('channel', result.data.channel); - this.getMessages(); - } else { - // TODO handle this - console.log(error) - } + this.$store.dispatch('openChat', { + channelID: this.channelID, + channelName: this.recipient.username + }) }, openUserInformation() { this.$store.dispatch('setUserInformationPopout', this.recipient.uniqueID) diff --git a/src/components/app/userInformationPopout.vue b/src/components/app/userInformationPopout.vue index 114de90..51d07b9 100644 --- a/src/components/app/userInformationPopout.vue +++ b/src/components/app/userInformationPopout.vue @@ -19,7 +19,6 @@
-
person_add
Add friend
@@ -36,7 +35,7 @@
person_add_disabled
End Friendship
-
+
chat
Send Message
@@ -48,7 +47,6 @@