You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/10/06 13:41:34 UTC

[airavata-django-portal] 10/13: AIRAVATA-3468 Add link for navigating back to the dashboard

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch AIRAVATA-3319-handle-missing-name-and-email-attributes-from-cilo
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit 8648a4c1143b99e0009788ca44feb69d5b6c1983
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Wed Jul 28 14:28:28 2021 -0400

    AIRAVATA-3468 Add link for navigating back to the dashboard
---
 .../static/django_airavata_auth/js/components/UserProfileEditor.vue    | 2 +-
 .../static/django_airavata_auth/js/containers/UserProfileContainer.vue | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/django_airavata/apps/auth/static/django_airavata_auth/js/components/UserProfileEditor.vue b/django_airavata/apps/auth/static/django_airavata_auth/js/components/UserProfileEditor.vue
index 23b9104..a59050b 100644
--- a/django_airavata/apps/auth/static/django_airavata_auth/js/components/UserProfileEditor.vue
+++ b/django_airavata/apps/auth/static/django_airavata_auth/js/components/UserProfileEditor.vue
@@ -76,7 +76,7 @@ export default {
   },
   validations() {
     const usernameRegex = helpers.regex("username", /^[a-z0-9_-]+$/);
-    const emailOrMatchesRegex = or(usernameRegex, sameAs('email'));
+    const emailOrMatchesRegex = or(usernameRegex, sameAs("email"));
     return {
       user: {
         username: {
diff --git a/django_airavata/apps/auth/static/django_airavata_auth/js/containers/UserProfileContainer.vue b/django_airavata/apps/auth/static/django_airavata_auth/js/containers/UserProfileContainer.vue
index da4e001..3a37faa 100644
--- a/django_airavata/apps/auth/static/django_airavata_auth/js/containers/UserProfileContainer.vue
+++ b/django_airavata/apps/auth/static/django_airavata_auth/js/containers/UserProfileContainer.vue
@@ -10,6 +10,9 @@
       @save="onSave"
       @resend-email-verification="resendEmailVerification"
     />
+    <b-link class="text-muted small" href="/workspace/dashboard"
+      >Return to Dashboard</b-link
+    >
   </div>
 </template>