diff --git a/src/components/layout/NavBar.vue b/src/components/layout/NavBar.vue index c0d0ab62..45ed53c1 100644 --- a/src/components/layout/NavBar.vue +++ b/src/components/layout/NavBar.vue @@ -47,6 +47,9 @@ Bookmarks + + Settings + Logout @@ -215,7 +218,7 @@ export default { .button-submit min-width auto - margin-left 15px + margin-left 10px font-weight 700 .fa-rss @@ -327,7 +330,7 @@ export default { .register display flex align-items center - margin-left 5px + margin-left 10px .logo-img max-height 30px diff --git a/src/components/profile/ActivityHeader.vue b/src/components/profile/ActivityHeader.vue index e29d3796..9bfd3c1b 100644 --- a/src/components/profile/ActivityHeader.vue +++ b/src/components/profile/ActivityHeader.vue @@ -7,8 +7,8 @@ diff --git a/src/components/profile/ProfileDetails.vue b/src/components/profile/ProfileDetails.vue index 97aef65d..020c77f8 100644 --- a/src/components/profile/ProfileDetails.vue +++ b/src/components/profile/ProfileDetails.vue @@ -1,287 +1,173 @@ diff --git a/src/components/profile/UpdateProfile.vue b/src/components/profile/UpdateProfile.vue index e5ab1cbc..88b3ae2d 100644 --- a/src/components/profile/UpdateProfile.vue +++ b/src/components/profile/UpdateProfile.vue @@ -2,24 +2,25 @@
-
-
+

Edit Profile

+
+ + id="emailInput" + v-model="email" + v-validate="{ required: false, email: true}" + disabled + name="email" + class="form-control" + aria-describedby="emailHelp" + placeholder="youremail@email.com" />
{{ errors.first("email") }} @@ -41,14 +42,14 @@
- +
{{ errors.first("name") }} @@ -57,14 +58,14 @@
- +
{{ errors.first("LastName") }} @@ -73,13 +74,13 @@
- +
{{ errors.first("twitter") }} @@ -88,29 +89,35 @@
- +
- +
+ {{msg}} +
@@ -200,9 +207,11 @@ export default { this.$validator.validateAll().then((result) => { if (result) { this.loading = true + const { bio, website, name, id, lastName, twitter } = this const cleanTwitter = (twitter) ? twitter.replace('@','') : null let updatePromise = null + if (this.file) { updatePromise = this.uploadAvatarImage({ imageFile: this.file }) .then((imageSuccess) => { @@ -218,10 +227,10 @@ export default { }) .catch((error) => { console.log('Error uploading', error) - this.$toasted.error('Error uploading', { + this.$toasted.error('Error uploading', { singleton: true, - theme: "bubble", - position: "bottom-center", + theme: "bubble", + position: "bottom-center", duration : 700 }) }) @@ -249,10 +258,10 @@ export default { }) .catch((error) => { console.log('Error Updaating', error) - this.$toasted.error('There was a problem updating your profile', { + this.$toasted.error('There was a problem updating your profile', { singleton: true, - theme: "bubble", - position: "bottom-center", + theme: "bubble", + position: "bottom-center", duration : 700 }) }) @@ -264,28 +273,48 @@ export default { } } + diff --git a/src/views/profile/ProfileActivities.vue b/src/views/profile/ProfileActivities.vue index c001b93c..4745201b 100644 --- a/src/views/profile/ProfileActivities.vue +++ b/src/views/profile/ProfileActivities.vue @@ -1,6 +1,6 @@ @@ -38,7 +32,6 @@