diff --git a/src/app/components/organizations/detail/organization-detail.component.html b/src/app/components/organizations/detail/organization-detail.component.html index 1d598432538bed32386c14ab918d397570819802..5f8521fd215766a82b1cffbae2a7a8d4462dd4e8 100644 --- a/src/app/components/organizations/detail/organization-detail.component.html +++ b/src/app/components/organizations/detail/organization-detail.component.html @@ -31,6 +31,11 @@ {{organization.description}} </div> <br> + <div> + <p class="has-text-weight-bold">ElasticSearch md5:</p> + <p>{{ organization.elasticSearchMd5}}</p> + </div> + <br> <div> <p class="has-text-weight-bold">Liens</p> <p *ngFor="let link of organization.links"> diff --git a/src/app/components/organizations/edit/organization-form.component.html b/src/app/components/organizations/edit/organization-form.component.html index 995e419619140c3a55ee28da71899255abb96c8c..c1d7998f3eaee75de1b137919c3eb33470643167 100644 --- a/src/app/components/organizations/edit/organization-form.component.html +++ b/src/app/components/organizations/edit/organization-form.component.html @@ -48,6 +48,13 @@ </div> </div> + <div class="field"> + <label class="label" for="elasticSearchMd5">ElasticSearch md5</label> + <div class="control"> + <input class="input" type="text" [value]="organization.elasticSearchMd5" formControlName="elasticSearchMd5" id="elasticSearchMd5"> + </div> + </div> + <div class="field links"> <div class="columns"> <div class="column is-11"> diff --git a/src/app/components/organizations/edit/organization-form.component.ts b/src/app/components/organizations/edit/organization-form.component.ts index 5ccb1db9212bf79e46970d4300c2a6843167f26a..47bb993ce55e43129b23a94d6ad5559e6b065065 100644 --- a/src/app/components/organizations/edit/organization-form.component.ts +++ b/src/app/components/organizations/edit/organization-form.component.ts @@ -49,6 +49,7 @@ export class OrganizationFormComponent implements OnInit { name: [organization.name, Validators.required], description: [organization.description, Validators.required], logo: [organization.logo], + elasticSearchMd5: [organization.elasticSearchMd5], links: arr, }); @@ -65,6 +66,7 @@ export class OrganizationFormComponent implements OnInit { name: [this.organization.name, Validators.required], description: [this.organization.description, Validators.required], logo: [this.organization.logo], + elasticSearchMd5: [this.organization.elasticSearchMd5], links: arr, }); } diff --git a/src/app/models/organization.model.ts b/src/app/models/organization.model.ts index 1b3a7d2832ea82f2764d0d44ae12c8b44ca23382..6a135ae979b377fe9b48093110e64ad07b9044cc 100644 --- a/src/app/models/organization.model.ts +++ b/src/app/models/organization.model.ts @@ -2,6 +2,7 @@ export class Organization { id: number; name: string; description: string; + elasticSearchMd5?: string; logo?: string; links?: ILink[]; @@ -10,12 +11,14 @@ export class Organization { this.id = organization.id; this.name = organization.name; this.description = organization.description; + this.elasticSearchMd5 = organization.elasticSearchMd5; this.links = organization.links; this.logo = organization.logo; } else { this.name = ''; this.description = ''; this.logo = ''; + this.elasticSearchMd5 = ''; } } @@ -35,6 +38,7 @@ export interface IOrganization { id: number; name: string; description: string; + elasticSearchMd5: string; logo: string; links: ILink[]; }