diff --git a/src/assets/sounds/Notification.mp3 b/src/assets/sounds/Notification.mp3 index ab867ca..49c40a6 100644 Binary files a/src/assets/sounds/Notification.mp3 and b/src/assets/sounds/Notification.mp3 differ diff --git a/src/components/ProfilePictureTemplate.vue b/src/components/ProfilePictureTemplate.vue index b874caa..b148e44 100644 --- a/src/components/ProfilePictureTemplate.vue +++ b/src/components/ProfilePictureTemplate.vue @@ -39,6 +39,7 @@ export default { .profile-picture { position: relative; border-radius: 50%; + flex-shrink: 0; } .inner-profile-picture { background-color: rgba(0, 0, 0, 0.315); diff --git a/src/components/app/MyMiniInformation.vue b/src/components/app/MyMiniInformation.vue index 46f83b4..2ae7076 100644 --- a/src/components/app/MyMiniInformation.vue +++ b/src/components/app/MyMiniInformation.vue @@ -5,15 +5,19 @@
{{user.username}}
@{{user.tag}}
-
- +
+ expand_more - +
-
+
error
@@ -25,10 +29,10 @@ @@ -91,7 +98,7 @@ export default { diff --git a/src/components/app/SettingsPanels/survey.vue b/src/components/app/SettingsPanels/survey.vue index 3056ebd..200db4b 100644 --- a/src/components/app/SettingsPanels/survey.vue +++ b/src/components/app/SettingsPanels/survey.vue @@ -102,6 +102,16 @@ export default { const selectedCountryName = this.filterCountry[this.selected.country].name; countryIndex = this.surveyItems.countries.findIndex(el => el.name == selectedCountryName); } + if (this.selected.name && this.selected.name.length >100) { + this.surveyErrorMessage = "Name must be less that 100 characters." + this.surveyValidMessage = null; + return; + } + if (this.selected.about_me && this.selected.about_me.length >500) { + this.surveyErrorMessage = "About me must be less that 500 characters." + this.surveyValidMessage = null + return; + } const { ok, error, result } = await userService.setSurvey({ name: this.selected.name, diff --git a/src/components/app/userInformationPopout.vue b/src/components/app/userInformationPopout.vue index 92cb520..56ea6e9 100644 --- a/src/components/app/userInformationPopout.vue +++ b/src/components/app/userInformationPopout.vue @@ -155,11 +155,11 @@ export default { ); }, openChat() { - // todo: find from friends array and later, create new channels for people who are not friends. this.$store.dispatch("openChat", { uniqueID: this.uniqueID, channelName: this.user.username }); + this.$store.dispatch("setUserInformationPopout", null); }, emojiParse(emoji) { if (emoji.startsWith(" { + if (isBusy()) return; const audio = new Audio(notificationSound); audio.play(); }, newFriend: () => { + if (isBusy()) return; const audio = new Audio(newFriendSound); audio.play(); } +} + +function isBusy(){ + return store.getters.user.status == 3 } \ No newline at end of file