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/07/13 21:49:48 UTC

[airavata-django-portal] branch staging updated: AIRAVATA-3487 Default write access to passed in GRP object

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

machristie pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/staging by this push:
     new 99e552e  AIRAVATA-3487 Default write access to passed in GRP object
99e552e is described below

commit 99e552e216be6654a188a7fa2c09892a37d56de0
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Jul 13 17:49:34 2021 -0400

    AIRAVATA-3487 Default write access to passed in GRP object
---
 .../GroupComputeResourcePreference.vue                         | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/django_airavata/apps/admin/static/django_airavata_admin/src/components/admin/group_resource_preferences/GroupComputeResourcePreference.vue b/django_airavata/apps/admin/static/django_airavata_admin/src/components/admin/group_resource_preferences/GroupComputeResourcePreference.vue
index 86475ba..bbeb102 100644
--- a/django_airavata/apps/admin/static/django_airavata_admin/src/components/admin/group_resource_preferences/GroupComputeResourcePreference.vue
+++ b/django_airavata/apps/admin/static/django_airavata_admin/src/components/admin/group_resource_preferences/GroupComputeResourcePreference.vue
@@ -85,7 +85,7 @@
               Edit
               <i class="fa fa-edit" aria-hidden="true"></i>
             </router-link>
-            
+
             <router-link
               class="action-link"
               v-if="!userHasWriteAccess"
@@ -108,7 +108,7 @@
               View
               <i class="fa fa-eye" aria-hidden="true"></i>
             </router-link>
-            
+
             <delete-link
               class="action-link"
               v-if="userHasWriteAccess"
@@ -126,8 +126,8 @@
       </template>
     </list-layout>
     <div class="fixed-footer">
-      <b-button 
-      variant="primary" 
+      <b-button
+      variant="primary"
       :disabled="!userHasWriteAccess"
       @click="saveGroupResourceProfile"
         >Save</b-button
@@ -202,7 +202,7 @@ export default {
       data: data,
       service: services.GroupResourceProfileService,
       sharedEntity: null,
-      userHasWriteAccess: false,
+      userHasWriteAccess: data.userHasWriteAccess,
       computePreferencesFields: [
         {
           label: "Name",