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 2019/05/09 16:19:58 UTC
[airavata-django-portal] 03/06: AIRAVATA-3030: fix changing user
permission
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 <ma...@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);
},