From 848ea5fb25e0a5ab6559a13f587abdacfba3d42b Mon Sep 17 00:00:00 2001 From: Andrew Redden Date: Mon, 4 May 2020 15:32:42 -0300 Subject: [PATCH] Tribes V1 RC1 - style updates for tab rails. fixes for the profile deatils component --- app/assets/v2/js/pages/profile-tribes.js | 11 +++-- .../templates/profiles/tribes-vue.html | 49 ++++++++++++------- .../templates/townsquare/shared/feednav.html | 4 +- 3 files changed, 39 insertions(+), 25 deletions(-) diff --git a/app/assets/v2/js/pages/profile-tribes.js b/app/assets/v2/js/pages/profile-tribes.js index 5748d37f8f0..ec3fd91439e 100644 --- a/app/assets/v2/js/pages/profile-tribes.js +++ b/app/assets/v2/js/pages/profile-tribes.js @@ -92,11 +92,14 @@ const loadDynamicScript = (callback, url, id) => { $.when(sendSave(url, data)).then(function(response) { _alert('Tribe has been updated'); - vm.tribe.tribes_cover_image = vm.headerFilePreview; - vm.$bvModal.hide('change-tribe-header'); + if (vm.headerFile) { + vm.tribe.tribes_cover_image = vm.headerFilePreview; + vm.$bvModal.hide('change-tribe-header'); + } }).fail(function(error) { - _alert('Error saving priorites. Try again later', 'error'); - console.error('error: unable to save priority', error); + + _alert('Error updating Tribe', 'error'); + console.error('error: unable to update tribe', error); }); }, suggestBounty: function() { diff --git a/app/dashboard/templates/profiles/tribes-vue.html b/app/dashboard/templates/profiles/tribes-vue.html index bb64cd5d6cf..24dfb054a58 100644 --- a/app/dashboard/templates/profiles/tribes-vue.html +++ b/app/dashboard/templates/profiles/tribes-vue.html @@ -41,9 +41,9 @@