airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata-django-portal] 03/06: AIRAVATA-3030: fix changing user permission
Date Thu, 09 May 2019 16:19:58 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit a09919ce9e37b9d38e3b6c7a1495dd252b18ffb7
Author: Marcus Christie <machristie@apache.org>
AuthorDate: Tue May 7 13:10:40 2019 -0400

    AIRAVATA-3030: fix changing user permission
---
 django_airavata/static/common/js/components/SharedEntityEditor.vue | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/django_airavata/static/common/js/components/SharedEntityEditor.vue b/django_airavata/static/common/js/components/SharedEntityEditor.vue
index fb0ba9c..a03e5e2 100644
--- a/django_airavata/static/common/js/components/SharedEntityEditor.vue
+++ b/django_airavata/static/common/js/components/SharedEntityEditor.vue
@@ -53,8 +53,9 @@
       >
         <b-form-select
           v-if="!data.item.readonly"
-          v-model="data.item.permissionType"
+          :value="data.item.permissionType"
           :options="permissionOptions"
+          @input="changeUserPermission(data.item.user, $event)"
         />
         <span
           v-else
@@ -294,6 +295,10 @@ export default {
     removeUser: function(user) {
       this.data.removeUser(user);
     },
+    changeUserPermission(user, permissionType) {
+      const up = this.data.userPermissions.find(up => up.user.airavataInternalUserId ===
user.airavataInternalUserId);
+      up.permissionType = permissionType;
+    },
     removeGroup: function(group) {
       this.data.removeGroup(group);
     },


Mime
View raw message