Skip to content

Commit bf22212

Browse files
committed
prepare to move nda
1 parent f58f24f commit bf22212

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/assets/js/access-groups-api.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ export default {
113113
if (!qsArray.length) {
114114
return `${endpoint}/${groupName}`;
115115
}
116+
if (options.hasOwnProperty('edit')) {
117+
qsArray.push(`p=${options.edit}`);
118+
}
116119
return `${endpoint}/${groupName}?${qsArray.join('&')}`;
117120
},
118121
delete: (endpoint, groupName, uuid) => `${endpoint}/${groupName}/${uuid}`,

src/components/_mixins/MembersListMixin.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ export default {
2929
},
3030
methods: {
3131
async fetchMembers() {
32+
const edit = Boolean(this.edit);
3233
const memberData = await this.accessGroupApi.execute({
3334
path: 'members/get',
34-
endpointArguments: [this.groupName, this.membersListOptions],
35+
endpointArguments: [
36+
this.groupName,
37+
{ edit, ...this.membersListOptions },
38+
],
3539
});
3640
3741
const members = memberData.members.map(

src/components/access_group/AccessGroupMembersEdit.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ export default {
301301
? accessGroupExpiration
302302
: 'custom';
303303
return {
304+
edit: true,
304305
updateExpirationErrorHighlight: false,
305306
customExpirationErrorHighlight: false,
306307
groupExpiration: !accessGroupExpiration ? 0 : accessGroupExpiration,

0 commit comments

Comments
 (0)