collection externalId
This commit is contained in:
parent
aabb1bc264
commit
fefe4edda1
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit 3b3b71d84192cc195f4626d6294b34d788641215
|
||||
Subproject commit 79fea92b8152c70ed59188d6acd4948dd81ed235
|
|
@ -15,6 +15,11 @@
|
|||
<label for="name">{{'name' | i18n}}</label>
|
||||
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="name" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="externalId">{{'externalId' | i18n}}</label>
|
||||
<input id="externalId" class="form-control" type="text" name="ExternalId" [(ngModel)]="externalId">
|
||||
<small class="form-text text-muted">{{'externalIdDesc' | i18n}}</small>
|
||||
</div>
|
||||
<ng-container *ngIf="accessGroups">
|
||||
<h3 class="mt-4 d-flex mb-0">
|
||||
{{'groupAccess' | i18n}}
|
||||
|
|
|
@ -38,6 +38,7 @@ export class CollectionAddEditComponent implements OnInit {
|
|||
accessGroups: boolean = false;
|
||||
title: string;
|
||||
name: string;
|
||||
externalId: string;
|
||||
groups: GroupResponse[] = [];
|
||||
formPromise: Promise<any>;
|
||||
deletePromise: Promise<any>;
|
||||
|
@ -65,6 +66,7 @@ export class CollectionAddEditComponent implements OnInit {
|
|||
try {
|
||||
const collection = await this.apiService.getCollectionDetails(this.organizationId, this.collectionId);
|
||||
this.name = await this.cryptoService.decryptToUtf8(new CipherString(collection.name), this.orgKey);
|
||||
this.externalId = collection.externalId;
|
||||
if (collection.groups != null && this.groups.length > 0) {
|
||||
collection.groups.forEach((s) => {
|
||||
const group = this.groups.filter((g) => !g.accessAll && g.id === s.id);
|
||||
|
@ -109,6 +111,7 @@ export class CollectionAddEditComponent implements OnInit {
|
|||
|
||||
const request = new CollectionRequest();
|
||||
request.name = (await this.cryptoService.encrypt(this.name, this.orgKey)).encryptedString;
|
||||
request.externalId = this.externalId;
|
||||
request.groups = this.groups.filter((g) => (g as any).checked && !g.accessAll)
|
||||
.map((g) => new SelectionReadOnlyRequest(g.id, !!(g as any).readOnly));
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<div class="form-group">
|
||||
<label for="externalId">{{'externalId' | i18n}}</label>
|
||||
<input id="externalId" class="form-control" type="text" name="ExternalId" [(ngModel)]="externalId">
|
||||
<small class="form-text text-muted">{{'externalIdGroupDesc' | i18n}}</small>
|
||||
<small class="form-text text-muted">{{'externalIdDesc' | i18n}}</small>
|
||||
</div>
|
||||
<h3 class="mt-4 d-flex">
|
||||
<div class="mb-2">
|
||||
|
|
|
@ -2044,8 +2044,8 @@
|
|||
"externalId": {
|
||||
"message": "External Id"
|
||||
},
|
||||
"externalIdGroupDesc": {
|
||||
"message": "The external id is used to link this group to an external system such as a user directory."
|
||||
"externalIdDesc": {
|
||||
"message": "The external id can be used as a reference or to link this resource to an external system such as a user directory."
|
||||
},
|
||||
"accessControl": {
|
||||
"message": "Access Control"
|
||||
|
|
Loading…
Reference in New Issue