Skip to content

Commit 7826b96

Browse files
committed
enable custom invite on prod + fix terms create
1 parent 45accd0 commit 7826b96

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

k8s/values/prod.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ env: prod
22
namespace: dinopark-prod
33
replicas: 3
44
features:
5-
accessGroupsNav: false
6-
customInvitationText: false
5+
accessGroupsNav: false

src/components/access_group/AccessGroupCreate.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,13 @@ export default {
269269
trust: this.groupTrust,
270270
},
271271
});
272+
if (this.groupTermsRequiredData) {
273+
await this.accessGroupApi.execute({
274+
path: 'terms/post',
275+
endpointArguments: [this.groupName],
276+
dataArguments: this.groupTermsData,
277+
});
278+
}
272279
this.completeLoading();
273280
this.tinyNotification('access-group-created', this.groupName);
274281
this.$router.push({

src/components/access_group/AccessGroupInformationEdit.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ export default {
262262
groupTermsRequiredData() {
263263
this.groupTermsDirty = true;
264264
},
265-
emailInviteText() {
265+
emailInviteText(value) {
266+
if (value !== null && !this.emailInviteTextEnabled) {
267+
this.emailInviteTextEnabled = true;
268+
}
266269
this.emailInviteTextDirty = true;
267270
},
268271
},
@@ -294,10 +297,11 @@ export default {
294297
});
295298
},
296299
async fetchEmailInviteText() {
297-
return await this.accessGroupApi.execute({
300+
const { body } = await this.accessGroupApi.execute({
298301
path: 'groupInvitationEmail/get',
299302
endpointArguments: [this.groupInformation.group.name],
300-
}).body;
303+
});
304+
return body;
301305
},
302306
async updateGroup(updateData) {
303307
await this.accessGroupApi.execute({

0 commit comments

Comments
 (0)