| 
														
															@@ -79,18 +79,15 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				>{{ modifiedUser.bio.length }}/200</span 
														 | 
														
														 | 
														
															 				>{{ modifiedUser.bio.length }}/200</span 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			> 
														 | 
														
														 | 
														
															 			> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		</p> 
														 | 
														
														 | 
														
															 		</p> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		<transition name="saved-changes-transition" mode="out-in"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		<transition name="saving-changes-transition" mode="out-in"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			<button 
														 | 
														
														 | 
														
															 			<button 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				class="button is-primary save-changes" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				v-if="!savedChanges" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				class="button save-changes" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				:class="saveButtonStyle" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				@click="saveChanges()" 
														 | 
														
														 | 
														
															 				@click="saveChanges()" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				key="save" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				Save changes 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			</button> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			<button class="button is-success save-changes" key="saved" v-else> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				<i class="material-icons icon-with-button">done</i>Saved Changes 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			</button> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				:key="saveStatus" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				:disabled="saveStatus === 'disabled'" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				v-html="saveButtonMessage" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		</transition> 
														 | 
														
														 | 
														
															 		</transition> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	</div> 
														 | 
														
														 | 
														
															 	</div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 </template> 
														 | 
														
														 | 
														
															 </template> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -102,11 +99,12 @@ import Toast from "toasters"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import validation from "../../../validation"; 
														 | 
														
														 | 
														
															 import validation from "../../../validation"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import io from "../../../io"; 
														 | 
														
														 | 
														
															 import io from "../../../io"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import SaveButton from "../mixins/SaveButton.vue"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 export default { 
														 | 
														
														 | 
														
															 export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	data() { 
														 | 
														
														 | 
														
															 	data() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		return { 
														 | 
														
														 | 
														
															 		return { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			notesUri: "", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			savedChanges: false 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			notesUri: "" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}; 
														 | 
														
														 | 
														
															 		}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}, 
														 | 
														
														 | 
														
															 	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	computed: mapState({ 
														 | 
														
														 | 
														
															 	computed: mapState({ 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -128,20 +126,32 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}, 
														 | 
														
														 | 
														
															 	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	methods: { 
														 | 
														
														 | 
														
															 	methods: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		saveChanges() { 
														 | 
														
														 | 
														
															 		saveChanges() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			if (this.modifiedUser.name !== this.originalUser.name) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				this.changeName(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			if (this.modifiedUser.location !== this.originalUser.location) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				this.changeLocation(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			if (this.modifiedUser.bio !== this.originalUser.bio) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				this.changeBio(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			if (this.modifiedUser.avatar.type !== this.originalUser.avatar.type) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				this.changeAvatarType(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		}, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		showSavedAnimation() { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			this.savedChanges = true; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			setTimeout(() => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				this.savedChanges = false; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			}, 2000); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			const nameChanged = 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.modifiedUser.name !== this.originalUser.name; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			const locationChanged = 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.modifiedUser.location !== this.originalUser.location; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			const bioChanged = this.modifiedUser.bio !== this.originalUser.bio; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			const avatarChanged = 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.modifiedUser.avatar.type !== this.originalUser.avatar.type; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			if (nameChanged) this.changeName(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			if (locationChanged) this.changeLocation(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			if (bioChanged) this.changeBio(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			if (avatarChanged) this.changeAvatarType(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			if ( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				!avatarChanged && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				!bioChanged && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				!locationChanged && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				!nameChanged 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.failedSave(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				new Toast({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					content: "Please make a change before saving.", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					timeout: 8000 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}, 
														 | 
														
														 | 
														
															 		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		changeName() { 
														 | 
														
														 | 
														
															 		changeName() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			const { name } = this.modifiedUser; 
														 | 
														
														 | 
														
															 			const { name } = this.modifiedUser; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -152,14 +162,17 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					timeout: 8000 
														 | 
														
														 | 
														
															 					timeout: 8000 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				}); 
														 | 
														
														 | 
														
															 				}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			this.saveStatus = "disabled"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			return this.socket.emit( 
														 | 
														
														 | 
														
															 			return this.socket.emit( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				"users.updateName", 
														 | 
														
														 | 
														
															 				"users.updateName", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				this.userId, 
														 | 
														
														 | 
														
															 				this.userId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				name, 
														 | 
														
														 | 
														
															 				name, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				res => { 
														 | 
														
														 | 
														
															 				res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					if (res.status !== "success") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if (res.status !== "success") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						new Toast({ content: res.message, timeout: 8000 }); 
														 | 
														
														 | 
														
															 						new Toast({ content: res.message, timeout: 8000 }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					else { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.failedSave(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					} else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						new Toast({ 
														 | 
														
														 | 
														
															 						new Toast({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							content: "Successfully changed name", 
														 | 
														
														 | 
														
															 							content: "Successfully changed name", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							timeout: 4000 
														 | 
														
														 | 
														
															 							timeout: 4000 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -170,7 +183,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							value: name 
														 | 
														
														 | 
														
															 							value: name 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						}); 
														 | 
														
														 | 
														
															 						}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-						if (!this.savedChanges) this.showSavedAnimation(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.successfulSave(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					} 
														 | 
														
														 | 
														
															 					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} 
														 | 
														
														 | 
														
															 				} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			); 
														 | 
														
														 | 
														
															 			); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -184,14 +197,17 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					timeout: 8000 
														 | 
														
														 | 
														
															 					timeout: 8000 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				}); 
														 | 
														
														 | 
														
															 				}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			this.saveStatus = "disabled"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			return this.socket.emit( 
														 | 
														
														 | 
														
															 			return this.socket.emit( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				"users.updateLocation", 
														 | 
														
														 | 
														
															 				"users.updateLocation", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				this.userId, 
														 | 
														
														 | 
														
															 				this.userId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				location, 
														 | 
														
														 | 
														
															 				location, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				res => { 
														 | 
														
														 | 
														
															 				res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					if (res.status !== "success") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if (res.status !== "success") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						new Toast({ content: res.message, timeout: 8000 }); 
														 | 
														
														 | 
														
															 						new Toast({ content: res.message, timeout: 8000 }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					else { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.failedSave(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					} else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						new Toast({ 
														 | 
														
														 | 
														
															 						new Toast({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							content: "Successfully changed location", 
														 | 
														
														 | 
														
															 							content: "Successfully changed location", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							timeout: 4000 
														 | 
														
														 | 
														
															 							timeout: 4000 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -202,7 +218,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							value: location 
														 | 
														
														 | 
														
															 							value: location 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						}); 
														 | 
														
														 | 
														
															 						}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-						if (!this.savedChanges) this.showSavedAnimation(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.successfulSave(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					} 
														 | 
														
														 | 
														
															 					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} 
														 | 
														
														 | 
														
															 				} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			); 
														 | 
														
														 | 
														
															 			); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -216,14 +232,17 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					timeout: 8000 
														 | 
														
														 | 
														
															 					timeout: 8000 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				}); 
														 | 
														
														 | 
														
															 				}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			this.saveStatus = "disabled"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			return this.socket.emit( 
														 | 
														
														 | 
														
															 			return this.socket.emit( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				"users.updateBio", 
														 | 
														
														 | 
														
															 				"users.updateBio", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				this.userId, 
														 | 
														
														 | 
														
															 				this.userId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				bio, 
														 | 
														
														 | 
														
															 				bio, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				res => { 
														 | 
														
														 | 
														
															 				res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					if (res.status !== "success") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if (res.status !== "success") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						new Toast({ content: res.message, timeout: 8000 }); 
														 | 
														
														 | 
														
															 						new Toast({ content: res.message, timeout: 8000 }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					else { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.failedSave(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					} else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						new Toast({ 
														 | 
														
														 | 
														
															 						new Toast({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							content: "Successfully changed bio", 
														 | 
														
														 | 
														
															 							content: "Successfully changed bio", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							timeout: 4000 
														 | 
														
														 | 
														
															 							timeout: 4000 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -234,7 +253,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							value: bio 
														 | 
														
														 | 
														
															 							value: bio 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						}); 
														 | 
														
														 | 
														
															 						}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-						if (!this.savedChanges) this.showSavedAnimation(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.successfulSave(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					} 
														 | 
														
														 | 
														
															 					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} 
														 | 
														
														 | 
														
															 				} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			); 
														 | 
														
														 | 
														
															 			); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -242,14 +261,17 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		changeAvatarType() { 
														 | 
														
														 | 
														
															 		changeAvatarType() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			const { avatar } = this.modifiedUser; 
														 | 
														
														 | 
														
															 			const { avatar } = this.modifiedUser; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			this.saveStatus = "disabled"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			return this.socket.emit( 
														 | 
														
														 | 
														
															 			return this.socket.emit( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				"users.updateAvatarType", 
														 | 
														
														 | 
														
															 				"users.updateAvatarType", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				this.userId, 
														 | 
														
														 | 
														
															 				this.userId, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				avatar.type, 
														 | 
														
														 | 
														
															 				avatar.type, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				res => { 
														 | 
														
														 | 
														
															 				res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					if (res.status !== "success") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if (res.status !== "success") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						new Toast({ content: res.message, timeout: 8000 }); 
														 | 
														
														 | 
														
															 						new Toast({ content: res.message, timeout: 8000 }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					else { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.failedSave(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					} else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						new Toast({ 
														 | 
														
														 | 
														
															 						new Toast({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							content: "Successfully updated avatar type", 
														 | 
														
														 | 
														
															 							content: "Successfully updated avatar type", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							timeout: 4000 
														 | 
														
														 | 
														
															 							timeout: 4000 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -260,13 +282,14 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							value: avatar 
														 | 
														
														 | 
														
															 							value: avatar 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						}); 
														 | 
														
														 | 
														
															 						}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-						if (!this.savedChanges) this.showSavedAnimation(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.successfulSave(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					} 
														 | 
														
														 | 
														
															 					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} 
														 | 
														
														 | 
														
															 				} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			); 
														 | 
														
														 | 
														
															 			); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}, 
														 | 
														
														 | 
														
															 		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		...mapActions("settings", ["updateOriginalUser"]) 
														 | 
														
														 | 
														
															 		...mapActions("settings", ["updateOriginalUser"]) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	mixins: [SaveButton] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 }; 
														 | 
														
														 | 
														
															 }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 </script> 
														 | 
														
														 | 
														
															 </script> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |